mercurial/localrepo.py
changeset 30571 46d2c8b23c33
parent 30505 a90867a22daf
child 30576 91db2aa0edfe
--- a/mercurial/localrepo.py	Thu Nov 17 10:59:15 2016 -0800
+++ b/mercurial/localrepo.py	Thu Nov 17 10:59:15 2016 -0800
@@ -1696,7 +1696,11 @@
             tr = self.transaction("commit")
             trp = weakref.proxy(tr)
 
-            if ctx.files():
+            if ctx.manifestnode():
+                # reuse an existing manifest revision
+                mn = ctx.manifestnode()
+                files = ctx.files()
+            elif ctx.files():
                 m1ctx = p1.manifestctx()
                 m2ctx = p2.manifestctx()
                 mctx = m1ctx.copy()