[PATCH] Remove slashes from VSS labels

Jonathan Perret Jonathan.Perret at augure.com
Wed Feb 7 07:27:25 EST 2007


Hello again,

This is another one-line patch that "handles" VSS labels that
contain forward slashes. We had a few instances of labels that
went "What we deployed on 13/4/2001" and this resulted in
vss2svn creating "/labels/What we deployed on 13",
with a "4" subdirectory and then a "2001" subdirectory.

I tried (not very hard) to encode the slash in the SVN path
(/labels/What we deployed on 13%2F4%2F2001) but this did
not work as expected. So this patch simply replaces slashes
with underscores.

Hope this helps,
--Jonathan

Index: script/Vss2Svn/Dumpfile.pm
===================================================================
--- script/Vss2Svn/Dumpfile.pm	(revision 291)
+++ script/Vss2Svn/Dumpfile.pm	(working copy)
@@ -542,6 +542,7 @@
     }
 
     my $label = $data->{info};
+    $label =~ s!/!_!g;
 
     # It is possible that the label was deleted later, so we see here a
label
     # action, but no label was assigned. In this case, we only need to
track



More information about the vss2svn-users mailing list