diff mercurial/archival.py @ 33363:3047167733dc

archival: flag missing files as a dirty wdir() in the metadata file (BC) Since the identify command adds a '+' for missing files, it's reasonable that this does too. Perhaps the node field's hex value should be p1+p2 for merges?
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 09 Jul 2017 02:46:03 -0400
parents 7feab0e7702d
children 0407a51b9d8c
line wrap: on
line diff
--- a/mercurial/archival.py	Sun Jul 09 00:53:16 2017 -0400
+++ b/mercurial/archival.py	Sun Jul 09 02:46:03 2017 -0400
@@ -83,7 +83,7 @@
     hex = ctx.hex()
     if ctx.rev() is None:
         hex = ctx.p1().hex()
-        if ctx.dirty():
+        if ctx.dirty(missing=True):
             hex += '+'
 
     base = 'repo: %s\nnode: %s\nbranch: %s\n' % (