|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
svn move
Hi,
I have used the below code to move the URL in the repository svnClientManager.getCopyClient().doCopy(srcURL, SVNRevision.HEAD, destURL, true, commitMessage).getNewRevision(); It is NOT working for a particular case : Moving a URL to its parent level. Steps to reproduce : 1) have a structure in repository like ...A/B/C/D 2) Move the D under B or A [D can be a file or directory] It is creating a new revision with out moving the URL. Is there a way to overcome this issue? Thanks, Kirthika |
|
|
Re: svn moveHello Kirthika,
I've just tried that with 1.1.7 version of SVNKit and move works for me - directory is copied to the parent directory and original one is deleted: // source directory: SVNURL srcURL = SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/move/repos/A/B/C/D"); // new URL of the source directory: SVNURL dstURL = SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/move/repos/A/B/D"); SVNClientManager.newInstance().getCopyClient(). doCopy(srcURL, SVNRevision.HEAD, dstURL, true, "move"); What protocol do you use (http, svn, file) to access repository? So far, I've tested it with directories accessing repository over "file" protocol. Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Kirthika wrote: > Hi, > I have used the below code to move the URL in the repository > svnClientManager.getCopyClient().doCopy(srcURL, SVNRevision.HEAD, > destURL, *true*, commitMessage).getNewRevision(); > > It is NOT working for a particular case : Moving a URL to its parent level. > Steps to reproduce : > 1) have a structure in repository like ...A/B/C/D > 2) Move the D under B or A > [D can be a file or directory] > It is creating a new revision with out moving the URL. > Is there a way to overcome this issue? > > Thanks, > Kirthika > > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
|
|
Re: svn moveHi,
I am using 1.1.4 version of SVNKit and "http" protocol to access the repository. I tried again and it is not moving for this particular case. Any idea? Thanks, Kirthika Alexander Kitaev wrote: > Hello Kirthika, > > I've just tried that with 1.1.7 version of SVNKit and move works for > me - directory is copied to the parent directory and original one is > deleted: > > // source directory: > SVNURL srcURL = > SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/move/repos/A/B/C/D"); > > // new URL of the source directory: > SVNURL dstURL = > SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/move/repos/A/B/D"); > > SVNClientManager.newInstance().getCopyClient(). > doCopy(srcURL, SVNRevision.HEAD, dstURL, true, "move"); > > > What protocol do you use (http, svn, file) to access repository? > > So far, I've tested it with directories accessing repository over > "file" protocol. > > Alexander Kitaev, > TMate Software, > http://svnkit.com/ - Java [Sub]Versioning Library! > > Kirthika wrote: >> Hi, >> I have used the below code to move the URL in the repository >> svnClientManager.getCopyClient().doCopy(srcURL, SVNRevision.HEAD, >> destURL, *true*, commitMessage).getNewRevision(); >> >> It is NOT working for a particular case : Moving a URL to its parent >> level. >> Steps to reproduce : >> 1) have a structure in repository like ...A/B/C/D >> 2) Move the D under B or A >> [D can be a file or directory] >> It is creating a new revision with out moving the URL. >> Is there a way to overcome this issue? >> >> Thanks, >> Kirthika >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: svnkit-users-unsubscribe@... > For additional commands, e-mail: svnkit-users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
|
|
Re: svn moveSome more information to debug - I am using Subversion 1.3.2
Kirthika wrote: > Hi, > I am using 1.1.4 version of SVNKit and "http" protocol to access > the repository. I tried again and it is not moving for this particular > case. Any idea? > > Thanks, > Kirthika > > Alexander Kitaev wrote: >> Hello Kirthika, >> >> I've just tried that with 1.1.7 version of SVNKit and move works for >> me - directory is copied to the parent directory and original one is >> deleted: >> >> // source directory: >> SVNURL srcURL = >> SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/move/repos/A/B/C/D"); >> >> // new URL of the source directory: >> SVNURL dstURL = >> SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/move/repos/A/B/D"); >> >> >> SVNClientManager.newInstance().getCopyClient(). >> doCopy(srcURL, SVNRevision.HEAD, dstURL, true, "move"); >> >> >> What protocol do you use (http, svn, file) to access repository? >> >> So far, I've tested it with directories accessing repository over >> "file" protocol. >> >> Alexander Kitaev, >> TMate Software, >> http://svnkit.com/ - Java [Sub]Versioning Library! >> >> Kirthika wrote: >>> Hi, >>> I have used the below code to move the URL in the repository >>> svnClientManager.getCopyClient().doCopy(srcURL, SVNRevision.HEAD, >>> destURL, *true*, commitMessage).getNewRevision(); >>> >>> It is NOT working for a particular case : Moving a URL to its parent >>> level. >>> Steps to reproduce : >>> 1) have a structure in repository like ...A/B/C/D >>> 2) Move the D under B or A >>> [D can be a file or directory] >>> It is creating a new revision with out moving the URL. >>> Is there a way to overcome this issue? >>> >>> Thanks, >>> Kirthika >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: svnkit-users-unsubscribe@... >> For additional commands, e-mail: svnkit-users-help@... >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
|
|
Re: svn moveHello,
Could you please enable debug logging (see https://wiki.svnkit.com/Troubleshooting) and send me the log file for failed operation (if possible, please try it with SVNKit 1.1.7). Meanwhile, I'll try to reproduce it with http server. As tests definitely includes such a move and tests pass against 1.4.6 HTTP server I suppose there could be some version incompatibility or may be something specific in your environment. Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! Kirthika wrote: > Hi, > I am using 1.1.4 version of SVNKit and "http" protocol to access the > repository. I tried again and it is not moving for this particular case. > Any idea? > > Thanks, > Kirthika > > Alexander Kitaev wrote: >> Hello Kirthika, >> >> I've just tried that with 1.1.7 version of SVNKit and move works for >> me - directory is copied to the parent directory and original one is >> deleted: >> >> // source directory: >> SVNURL srcURL = >> SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/move/repos/A/B/C/D"); >> >> // new URL of the source directory: >> SVNURL dstURL = >> SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/move/repos/A/B/D"); >> >> SVNClientManager.newInstance().getCopyClient(). >> doCopy(srcURL, SVNRevision.HEAD, dstURL, true, "move"); >> >> >> What protocol do you use (http, svn, file) to access repository? >> >> So far, I've tested it with directories accessing repository over >> "file" protocol. >> >> Alexander Kitaev, >> TMate Software, >> http://svnkit.com/ - Java [Sub]Versioning Library! >> >> Kirthika wrote: >>> Hi, >>> I have used the below code to move the URL in the repository >>> svnClientManager.getCopyClient().doCopy(srcURL, SVNRevision.HEAD, >>> destURL, *true*, commitMessage).getNewRevision(); >>> >>> It is NOT working for a particular case : Moving a URL to its parent >>> level. >>> Steps to reproduce : >>> 1) have a structure in repository like ...A/B/C/D >>> 2) Move the D under B or A >>> [D can be a file or directory] >>> It is creating a new revision with out moving the URL. >>> Is there a way to overcome this issue? >>> >>> Thanks, >>> Kirthika >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: svnkit-users-unsubscribe@... >> For additional commands, e-mail: svnkit-users-help@... >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: svnkit-users-unsubscribe@... > For additional commands, e-mail: svnkit-users-help@... > > --------------------------------------------------------------------- To unsubscribe, e-mail: svnkit-users-unsubscribe@... For additional commands, e-mail: svnkit-users-help@... |
| Free Forum Powered by Nabble | Forum Help |