Patchwork D6309: tests: demonstrate `hg log -r . <file>` linkrev bug

login
register
mail settings
Submitter phabricator
Date April 24, 2019, 11:30 p.m.
Message ID <d8499df7d64effb62466245943f1c499@localhost.localdomain>
Download mbox | patch
Permalink /patch/39825/
State Not Applicable
Headers show

Comments

phabricator - April 24, 2019, 11:30 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGeb68fd841984: tests: demonstrate `hg log -r . &lt;file&gt;` linkrev bug (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6309?vs=14908&id=14918

REVISION DETAIL
  https://phab.mercurial-scm.org/D6309

AFFECTED FILES
  tests/test-log.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-log.t b/tests/test-log.t
--- a/tests/test-log.t
+++ b/tests/test-log.t
@@ -1081,7 +1081,7 @@ 
   $ cd ..
 
 log --follow --patch FILE in repository where linkrev isn't trustworthy
-(issue5376)
+(issue5376, issue6124)
 
   $ hg init follow-dup
   $ cd follow-dup
@@ -1129,6 +1129,16 @@ 
   @@ -0,0 +1,1 @@
   +0
   
+  $ hg log -pr . a
+  === 3: a3
+  diff -r 4ea02ba94d66 -r e7a6331a34f0 a
+  --- a/a
+  +++ b/a
+  @@ -1,2 +1,3 @@
+   0
+   1
+  +3
+  
 
  fctx.introrev() == 2, but fctx.linkrev() == 1
 
@@ -1150,6 +1160,9 @@ 
   +0
   
 
+BROKEN: should show the same diff as for rev 2 above
+  $ hg log -pr . a
+
   $ cd ..
 
 Multiple copy sources of a file: