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

"svn diff -c" on a merged revision shows wrong parent rev

From: Franz Weller <franz.weller_at_freescale.com>
Date: Tue, 06 Oct 2009 11:19:44 -0500

Using:
svn, version 1.6.5 (r38866)
compiled Sep 1 2009, 13:23:06
Windows XP SP2

Ran this command:
  "svn diff -c 8299 some_file.cpp"

Output was:
  "Index: ddi_lba_nand_media.cpp
  ===================================================================
  --- some_file.cpp (revision 8298)
  +++ some_file.cpp (revision 8299)
  (and subsequent difference details...)"

Problem:
The predecessor's revision 8298 is wrong.
The actual predecessor is a different revision, "8278".

Revision 8299 was created by merging from 8298 of a different URL into 8278,
using "svn merge -c 8298 URL_B ."

Here it is pictorially:

URL_A URL_B
r8278 r8298
 | /
 | /
 | /
 V V
r8299
URL_A

The predecessor of 8299 is therefore 8278.

Note that the difference details *are* correct. i.e. The difference
contents
do match the output of "svn diff -r 8278:8299 some_file.cpp". Only the
revision number seems to be incorrect in the output of "svn diff -c 8299".

Thanks.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2404180
Received on 2009-10-07 15:52:39 CEST

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

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