[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svncopy.pl: A couple issues, a workaround, an oddity and success.

From: Robert P. J. Day <rpjday_at_crashcourse.ca>
Date: Thu, 13 Nov 2008 05:14:52 -0500

   In case anyone else wants to play with svncopy.pl to freeze
a repo and pin all the (unversioned) externals simultaneously,
here's what I ran into.

   First, do not be like me and forget to set the location of
the "svn" command initially, as in:

   my $svn = 'svn'; # if it's on your search path already

   A quick fix, then on to the next (admittedly unusual) glitch
in that I was trying this on a server over which I have no
control and which had a teeny, tiny /tmp filesystem, which
caused the script to choke on "Out of space", so I modified
the script to point at a personal "tmp" directory in the
gargantuan /home filesystem (around line 930):

   # my $temp_dir = tempdir("svncopy_XXXXXXXXXX", TMPDIR => 1);
   my $temp_dir = tempdir('svncopy_XXXXXXXXXX', DIR => '/home/rpjday/tmp');

But here's the puzzler. Once the above was out of the way, the
svncopy.pl was progressing nicely until:

...
svn: Path 'http://repo//trunk/Doxygen' not found in revision 1266
svncopy.pl: /home/rday/bin/svncopy.pl: svn copy failed
...

   It turns out that that top-level directory is itself an
unversioned external, but it wasn't critical to the code
freeze so I dropped it. The same error occurred later on
for the other top-level external, and I dropped that one as
well, at which point everything worked fine.

   In short, what I had to do to avoid getting an extra "trunk"
directory level in the new (pinned) branch was:

   $ svncopy.pl [--verbose] --pin-externals \
       http://.../repo/trunk/dir1 \
       http://.../repo/trunk/dir2 \
       ... snip ...
       http://.../repo/trunk/dirn \
       http://.../repo/branches/newpinnedbranch

But that script seems unable to handle unversioned external
references at the very top level. Everywhere else is fine,
just not at the top, which is a bit puzzling. Thoughts?

   Other than that, it works fine and I'll be using it on
a regular basis.

rday

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-11-13 11:15:16 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.