[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Wrong output from "svn log --use-merge-history --stop-on-copy"

From: Dmitry Batrak <batrdmi_at_gmail.com>
Date: Sat, 27 Aug 2011 13:43:02 +0400

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_at_1130896-WIN32).
Received on 2011-08-28 23:03:47 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.