You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dmitry Batrak <ba...@gmail.com> on 2011/08/27 11:43:02 UTC
Wrong output from "svn log --use-merge-history --stop-on-copy"
Steps to reproduce the issue:
Start from empty module with standard structure created under repository
root:
<repo root>
\-module
|-branches
|-tags
\-trunk
Perform the following sequence of commands from checked out trunk:
echo "content" > file.txt
svn add file.txt
svn commit -m "creating file"
svn copy -m "creating branch" "^/module/trunk" "^/module/branches/branch"
svn switch "^/module/branches/branch"
echo "modified content" > file.txt
svn commit -m "modifying file in branch"
svn switch "^/module/trunk"
svn merge "^/module/branches/branch"
svn commit -m "merging changes from branch"
svn copy file.txt file-copy.txt
svn commit -m "copying file"
Now the following command:
svn log --use-merge-history --stop-on-copy "^/module/trunk/file-copy.txt"
produces:
------------------------------------------------------------------------
r195 | WizarD | 2011-08-27 13:02:53 +0400 (Сб, 27 авг 2011) | 1 line
copying file
------------------------------------------------------------------------
r193 | WizarD | 2011-08-27 13:02:29 +0400 (Сб, 27 авг 2011) | 1 line
Merged via: r195
modifying file in branch
------------------------------------------------------------------------
r192 | WizarD | 2011-08-27 13:02:17 +0400 (Сб, 27 авг 2011) | 1 line
Merged via: r195
creating branch
------------------------------------------------------------------------
although no merging was performed in r195.
The above was checked with local repository using Subversion 1.6.17 on
Windows (1.6.17-SlikSvn-tag-1.6.17@1130896-WIN32).