Comments
Patch
@@ -680,3 +680,12 @@
$ hg -R convert_lfs2 config --debug extensions | grep lfs
$TESTTMP/convert_lfs2/.hg/hgrc:*: extensions.lfs= (glob)
+
+Committing deleted files works:
+
+ $ hg init $TESTTMP/repo-del
+ $ cd $TESTTMP/repo-del
+ $ echo 1 > A
+ $ hg commit -m 'add A' -A A
+ $ hg rm A
+ $ hg commit -m 'rm A'
@@ -124,7 +124,7 @@
if 'lfs' not in repo.requirements:
ctx = repo[kwargs['node']]
# TODO: is there a way to just walk the files in the commit?
- if any(ctx[f].islfs() for f in ctx.files()):
+ if any(ctx[f].islfs() for f in ctx.files() if f in ctx):
repo.requirements.add('lfs')
repo._writerequirements()