Comments
Patch
@@ -331,8 +331,8 @@
A l
$ echo modified >> a
$ hg rm l
- $ hg commit --amend a 2>&1 | grep AttributeError
- AttributeError: 'NoneType' object has no attribute 'renamed' (known-bad-output !)
+ $ hg commit --amend a
+ saved backup bundle to $TESTTMP/repo/.hg/strip-backup/*-*-amend.hg (glob)
$ cd ..
@@ -2935,7 +2935,7 @@
def filectxfn(repo, ctx_, path):
try:
# Return None for removed files.
- if path in wctx.removed():
+ if path in wctx.removed() and path in filestoamend:
return None
# If the file being considered is not amongst the files