You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Cyril Margorin <co...@gmail.com> on 2009/03/06 12:40:44 UTC

SVNCopy.pl

Hello,

I'm trying to make SVNCopy.pl script work on Windows XP machine, but has
some problems with folder names that contains spaces (especially with
temporary directory, that created in 'C:\Documents and Settings\Cyril
Margorin\Local Settings\Temp' directory)
I've tried to make some changes (like quoting the working directory name)
but still has a very strange moment:
It tries to work as external next folder
 * : update svn:externals
   from 'C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI- ' to 'C:\Documents -r
-1 and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI - '

But the folder SubProject1 is not external and do not have externals inside.

Another question is: Why it complains "log -q on 'XXXX' failed"? I tried
manually make log -q - everything is ok...

The full log message is below:

----
=================================================================
=== Copying from:
===       https://imperx-fileserv/svn/imperx/SDI-Express/trunk
===
=== Copying to:
===       https://imperx-fileserv/svn/imperx/SDI-Express/tags/test_1
===
===  - tagging (pinning all svn:externals definitions to current revision)
===
Using temporary directory
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr
Creating intermediate directories (if necessary)
 > "C:\Program Files\SlikSvn\bin/svn" mkdir --file
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr\RXj2ra02Dv
https://imperx-fileserv/svn/imperx/SDI-Express/tags/test_1
Checking out destination directory '
https://imperx-fileserv/svn/imperx/SDI-Express/tags/test_1'
 > "C:\Program Files\SlikSvn\bin/svn" co
https://imperx-fileserv/svn/imperx/SDI-Express/tags/test_1C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr/test_1
 > "C:\Program Files\SlikSvn\bin/svn" copy
https://imperx-fileserv/svn/imperx/SDI-Express/trunkC:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr/test_1
Checking 'C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr/test_1'
 > "C:\Program Files\SlikSvn\bin/svn" propget -R svn:externals
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr/test_1
 - Update 'C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\ipxLogProxy'
 - Found ^/ExternalTools/VS2005/BuildProperties/trunk => 'BuildProperties'
svncopy.pl: LatestRevision: log -q on 'BuildProperties' failed
 - updated '^/ExternalTools/VS2005/BuildProperties/trunk BuildProperties' to
'^/ExternalTools/VS2005/BuildProperties/trunk -r -1 BuildProperties'
'^/ExternalTools/VS2005/BuildProperties/trunk BuildProperties' =>
'^/ExternalTools/VS2005/BuildProperties/trunk -r -1 BuildProperties'
 > "C:\Program Files\SlikSvn\bin/svn" propset --file
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr\AdQhq8M5Ln
svn:externals "C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\ipxLogProxy"
svn: Negative revision number found parsing '-1'
 - Update 'C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk'
 - Found ^/ExternalTools/VS2005/BuildProperties/trunk/ => 'BuildProperties'
svncopy.pl: LatestRevision: log -q on 'BuildProperties' failed
 - updated '^/ExternalTools/VS2005/BuildProperties/trunk/ BuildProperties'
to '^/ExternalTools/VS2005/BuildProperties/trunk/ -r -1 BuildProperties'
 - Found ^/ExternalTools/VS2005/MakeRelease/trunk/ => 'MakeRelease'
svncopy.pl: LatestRevision: log -q on 'MakeRelease' failed
 - updated '^/ExternalTools/VS2005/MakeRelease/trunk/ MakeRelease' to
'^/ExternalTools/VS2005/MakeRelease/trunk/ -r -1 MakeRelease'
 - Found ^/ExternalTools/IPP/JPEG-IJL/trunk/ => 'JPEG-IJL '
svncopy.pl: LatestRevision: log -q on 'JPEG-IJL ' failed
 - updated '^/ExternalTools/IPP/JPEG-IJL/trunk/ JPEG-IJL ' to
'^/ExternalTools/IPP/JPEG-IJL/trunk/ -r -1 JPEG-IJL '
 - Found ^/ExternalTools/GnuWin32/libtiff/trunk/ => 'libtiff'
svncopy.pl: LatestRevision: log -q on 'libtiff' failed
 - updated '^/ExternalTools/GnuWin32/libtiff/trunk/ libtiff' to
'^/ExternalTools/GnuWin32/libtiff/trunk/ -r -1 libtiff'
   '^/ExternalTools/VS2005/BuildProperties/trunk/ BuildProperties' =>
'^/ExternalTools/VS2005/BuildProperties/trunk/ -r -1 BuildProperties'
   '^/ExternalTools/VS2005/MakeRelease/trunk/ MakeRelease' =>
'^/ExternalTools/VS2005/MakeRelease/trunk/ -r -1 MakeRelease'
   '^/ExternalTools/GnuWin32/libtiff/trunk/ libtiff' =>
'^/ExternalTools/GnuWin32/libtiff/trunk/ -r -1 libtiff'
   '^/ExternalTools/IPP/JPEG-IJL/trunk/ JPEG-IJL ' =>
'^/ExternalTools/IPP/JPEG-IJL/trunk/ -r -1 JPEG-IJL '
 > "C:\Program Files\SlikSvn\bin/svn" propset --file
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr\R2wyZEa2CP
svn:externals "C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk"
svn: Negative revision number found parsing '-1'
 - Update 'C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\SDI-Express'
 - Found ^/ExternalTools/GUI/GridCtrl/trunk/ => 'GridCtrl'
svncopy.pl: LatestRevision: log -q on 'GridCtrl' failed
 - updated '^/ExternalTools/GUI/GridCtrl/trunk/ GridCtrl' to
'^/ExternalTools/GUI/GridCtrl/trunk/ -r -1 GridCtrl'
 - Found ^/ExternalTools/Threading/SynchroObjects/trunk/ => 'SynchroObjects'
svncopy.pl: LatestRevision: log -q on 'SynchroObjects' failed
 - updated '^/ExternalTools/Threading/SynchroObjects/trunk/ SynchroObjects'
to '^/ExternalTools/Threading/SynchroObjects/trunk/ -r -1 SynchroObjects'
 - Found ^/ExternalTools/Misc/PerfCounter/trunk/ => 'PerfCounter'
svncopy.pl: LatestRevision: log -q on 'PerfCounter' failed
 - updated '^/ExternalTools/Misc/PerfCounter/trunk/ PerfCounter' to
'^/ExternalTools/Misc/PerfCounter/trunk/ -r -1 PerfCounter'
   '^/ExternalTools/Misc/PerfCounter/trunk/ PerfCounter' =>
'^/ExternalTools/Misc/PerfCounter/trunk/ -r -1 PerfCounter'
   '^/ExternalTools/GUI/GridCtrl/trunk/ GridCtrl' =>
'^/ExternalTools/GUI/GridCtrl/trunk/ -r -1 GridCtrl'
   '^/ExternalTools/Threading/SynchroObjects/trunk/ SynchroObjects' =>
'^/ExternalTools/Threading/SynchroObjects/trunk/ -r -1 SynchroObjects'
 > "C:\Program Files\SlikSvn\bin/svn" propset --file
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr\jMlfsOQvv2
svn:externals "C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\SDI-Express"
svn: Negative revision number found parsing '-1'
 - Update 'C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\ippLib'
 - Found ^/ExternalTools/VS2005/BuildProperties/trunk => 'BuildProperties'
svncopy.pl: LatestRevision: log -q on 'BuildProperties' failed
 - updated '^/ExternalTools/VS2005/BuildProperties/trunk BuildProperties' to
'^/ExternalTools/VS2005/BuildProperties/trunk -r -1 BuildProperties'
   '^/ExternalTools/VS2005/BuildProperties/trunk BuildProperties' =>
'^/ExternalTools/VS2005/BuildProperties/trunk -r -1 BuildProperties'
 > "C:\Program Files\SlikSvn\bin/svn" propset --file
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr\DDtTMungOc
svn:externals "C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\ippLib"
svn: Negative revision number found parsing '-1'
 - Update '.'
 - Found C:\Documents => 'and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI - '
svncopy.pl: LatestRevision: log -q on 'and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI - ' failed
svncopy.pl: LatestRevision: log -q on 'and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI - ' failed
 - updated 'C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI - ' to 'C:\Documents -r
-1 and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI - '
   'C:\Documents and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI - ' => 'C:\Documents -r
-1 and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI - '
 > "C:\Program Files\SlikSvn\bin/svn" propset --file
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr\dYJs58X9im
svn:externals "."
svn: '.' is not a working copy
 > "C:\Program Files\SlikSvn\bin/svn" commit --file
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr\6fcfeH8bno
C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr/test_1
=== ... copy complete
=================================================================

*****************************************************************
Errors:
svncopy.pl: LatestRevision: log -q on 'BuildProperties' failed
svncopy.pl: LatestRevision: log -q on 'BuildProperties' failed
svncopy.pl: LatestRevision: log -q on 'MakeRelease' failed
svncopy.pl: LatestRevision: log -q on 'JPEG-IJL ' failed
svncopy.pl: LatestRevision: log -q on 'libtiff' failed
svncopy.pl: LatestRevision: log -q on 'GridCtrl' failed
svncopy.pl: LatestRevision: log -q on 'SynchroObjects' failed
svncopy.pl: LatestRevision: log -q on 'PerfCounter' failed
svncopy.pl: LatestRevision: log -q on 'BuildProperties' failed
svncopy.pl: LatestRevision: log -q on 'and Settings\Cyril Margorin\Local
Settings\Temp\svncopy_mxph2EUPSr\test_1\trunk\VCESDI - ' failed
Leaving C:\DOCUME~1\CYRILM~1\LOCALS~1\Temp\svncopy_mxph2EUPSr for inspection
----

-- 
Cyril Margorin

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1276914

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: SVNCopy.pl

Posted by Cyril Margorin <co...@gmail.com>.
I've found the reason of incorrect external - I've got an empty
svn:externals property, that incorrectly parsed in script.
The problem with log -q is that
1) I've got an entry in 'Repository Alias' format
2) I'm working with relative externals

So additional question: does this script works with relative externals?



-- 
Cyril Margorin

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1277302

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Reference related packages

Posted by maheshwar singh <ma...@hotmail.com>.
Hi,
 
I version my content from within an application with subversion in the backend. I have a dependency on a SQL script, how best can i versioning these external dependencies?  
 
does subversion let me reference related packages that have been checked at different point of time?
 
- Maheshwar
_________________________________________________________________
So many new options, so little time. Windows Live Messenger.
http://www.microsoft.com/india/windows/windowslive/messenger.aspx

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1277736

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].