Comments
Patch
@@ -1618,7 +1618,7 @@ class committablefilectx(basefilectx):
for pc in pcl[1:]:
pl.append((path, filenode(pc, path), fl))
- return [filectx(self._repo, p, fileid=n, filelog=l)
+ return [self._parentfilectx(p, fileid=n, filelog=l)
for p, n, l in pl if n != nullid]
def children(self):
@@ -556,6 +556,7 @@ create history with a filerev whose link
grafting 1:fd27c222e3e6 "contentB"
$ echo C >> a
$ hg commit -m 'contentC'
+ $ echo W >> a
$ hg log -G
@ changeset: 4:072f1e8df249
| tag: tip
@@ -592,6 +593,12 @@ Annotate should list ancestor of startin
3: B
4: C
+ $ hg annotate a -r 'wdir()'
+ 0 : A
+ 3 : B
+ 4 : C
+ 4+: W
+
Even when the starting revision is the linkrev-shadowed one:
$ hg annotate a -r 3