List Info

Thread: svn move




svn move
user name
2008-04-23 04:16:56
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 move
user name
2008-04-24 03:02:31
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/m
ove/repos/A/B/C/D"); 
>
> // new URL of the source directory:
> SVNURL dstURL =
>
SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/m
ove/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-unsubscribesvnkit.com
> For additional commands, e-mail: svnkit-users-helpsvnkit.com
>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: svnkit-users-unsubscribesvnkit.com
For additional commands, e-mail: svnkit-users-helpsvnkit.com


Re: svn move
user name
2008-04-24 04:45:33
Some 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/m
ove/repos/A/B/C/D"); 
>>
>> // new URL of the source directory:
>> SVNURL dstURL =
>>
SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/m
ove/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-unsubscribesvnkit.com
>> For additional commands, e-mail:
svnkit-users-helpsvnkit.com
>>
>>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: svnkit-users-unsubscribesvnkit.com
For additional commands, e-mail: svnkit-users-helpsvnkit.com


Re: svn move
user name
2008-04-24 09:53:03
Hello,

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/m
ove/repos/A/B/C/D"); 
>>
>> // new URL of the source directory:
>> SVNURL dstURL =
>>
SVNURL.parseURIEncoded("file:///c:/users/alex/sandbox/m
ove/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-unsubscribesvnkit.com
>> For additional commands, e-mail:
svnkit-users-helpsvnkit.com
>>
>>
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: svnkit-users-unsubscribesvnkit.com
> For additional commands, e-mail: svnkit-users-helpsvnkit.com
> 
> 

------------------------------------------------------------
---------
To unsubscribe, e-mail: svnkit-users-unsubscribesvnkit.com
For additional commands, e-mail: svnkit-users-helpsvnkit.com


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )