[
https://issues.apache.org/jira/browse/SVN-2598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Zhakov updated SVN-2598:
-----------------------------
Description:
Opening a ticket for this issue I raised on the dev mailing list:
http://svn.haxx.se/dev/archive-2006-08/0439.shtml
No responses, so noting the recipe here.
Moving a file using URLs into one of its parent's directories where the
destination URL ends only in the destination directory looks like it succeeds,
but does not. For example,
{noformat}
svn mv http://example.com/repos/A/B/file.txt http://example.com/repos/A/
{noformat}
causes this. If you use http://example.com/repos/A/file.txt, then you get the
add and the delete.
Has this been seen before? I looked through the issue tracker quickly and
didn't see anything.
At the end of this recipe, you end up with an empty commit. This happens with
1.3.2.
{noformat}
rm -fr repos wc
svnadmin create repos
svn co file://`pwd`/repos wc
cd wc
svn mkdir A
svn mkdir A/B
svn ci -m 'create A/B'
touch A/B/file.txt
svn add A/B/file.txt
svn ci -m 'add file.txt'
cd ..
svn mv -m 'move file.txt' file://`pwd`/repos/A/B/file.txt file://`pwd`/repos/A
cd wc
svn update
svn log -v -r HEAD
{noformat}
was:
{noformat:nopanel=true}
Opening a ticket for this issue I raised on the dev mailing list:
http://svn.haxx.se/dev/archive-2006-08/0439.shtml
No responses, so noting the recipe here.
Moving a file using URLs into one of its parent's directories where the
destination URL ends only in the destination directory looks like it succeeds,
but does not. For example,
svn mv http://example.com/repos/A/B/file.txt http://example.com/repos/A/
causes this. If you use http://example.com/repos/A/file.txt, then you get the
add and the delete.
Has this been seen before? I looked through the issue tracker quickly and
didn't see anything.
At the end of this recipe, you end up with an empty commit. This happens with
1.3.2.
rm -fr repos wc
svnadmin create repos
svn co file://`pwd`/repos wc
cd wc
svn mkdir A
svn mkdir A/B
svn ci -m 'create A/B'
touch A/B/file.txt
svn add A/B/file.txt
svn ci -m 'add file.txt'
cd ..
svn mv -m 'move file.txt' file://`pwd`/repos/A/B/file.txt file://`pwd`/repos/A
cd wc
svn update
svn log -v -r HEAD
{noformat}
> svn mv with URLs into parent directory created empty commits
> ------------------------------------------------------------
>
> Key: SVN-2598
> URL: https://issues.apache.org/jira/browse/SVN-2598
> Project: Subversion
> Issue Type: Bug
> Components: cmdline client
> Affects Versions: 1.3.x
> Reporter: Blair Zajac
> Assignee: Bert Huijben
> Fix For: 1.7.0
>
>
> Opening a ticket for this issue I raised on the dev mailing list:
> http://svn.haxx.se/dev/archive-2006-08/0439.shtml
> No responses, so noting the recipe here.
> Moving a file using URLs into one of its parent's directories where the
> destination URL ends only in the destination directory looks like it
> succeeds, but does not. For example,
> {noformat}
> svn mv http://example.com/repos/A/B/file.txt http://example.com/repos/A/
> {noformat}
> causes this. If you use http://example.com/repos/A/file.txt, then you get
> the add and the delete.
> Has this been seen before? I looked through the issue tracker quickly and
> didn't see anything.
> At the end of this recipe, you end up with an empty commit. This happens
> with 1.3.2.
> {noformat}
> rm -fr repos wc
> svnadmin create repos
> svn co file://`pwd`/repos wc
> cd wc
> svn mkdir A
> svn mkdir A/B
> svn ci -m 'create A/B'
> touch A/B/file.txt
> svn add A/B/file.txt
> svn ci -m 'add file.txt'
> cd ..
> svn mv -m 'move file.txt' file://`pwd`/repos/A/B/file.txt file://`pwd`/repos/A
> cd wc
> svn update
> svn log -v -r HEAD
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)