summary: mention graft
authortimeless <timeless@mozdev.org>
Wed, 02 Dec 2015 06:31:12 +0000
changeset 27172 4d61c847e06c
parent 27171 3028ea0aff46
child 27173 8a8f5d71a49a
summary: mention graft
mercurial/commands.py
tests/test-graft.t
--- a/mercurial/commands.py	Wed Dec 02 08:07:36 2015 +0000
+++ b/mercurial/commands.py	Wed Dec 02 06:31:12 2015 +0000
@@ -6272,6 +6272,8 @@
     t = ', '.join(t)
     cleanworkdir = False
 
+    if repo.vfs.exists('graftstate'):
+        t += _(' (graft in progress)')
     if repo.vfs.exists('updatestate'):
         t += _(' (interrupted update)')
     elif len(parents) > 1:
--- a/tests/test-graft.t	Wed Dec 02 08:07:36 2015 +0000
+++ b/tests/test-graft.t	Wed Dec 02 06:31:12 2015 +0000
@@ -195,6 +195,11 @@
   (use hg resolve and hg graft --continue)
   [255]
 
+Summary should mention graft:
+
+  $ hg summary |grep graft
+  commit: 2 modified, 2 unknown, 1 unresolved (graft in progress)
+
 Commit while interrupted should fail:
 
   $ hg ci -m 'commit interrupted graft'