mercurial/ui.py
changeset 26750 9f9ec4abe700
parent 26587 56b2bcea2529
child 26781 1aee2ab0f902
--- a/mercurial/ui.py	Sat Oct 17 01:15:34 2015 +0900
+++ b/mercurial/ui.py	Sat Oct 17 01:15:34 2015 +0900
@@ -835,7 +835,8 @@
         if self.debugflag:
             opts['label'] = opts.get('label', '') + ' ui.debug'
             self.write(*msg, **opts)
-    def edit(self, text, user, extra=None, editform=None):
+
+    def edit(self, text, user, extra=None, editform=None, pending=None):
         if extra is None:
             extra = {}
         (fd, name) = tempfile.mkstemp(prefix="hg-editor-", suffix=".txt",
@@ -854,6 +855,8 @@
                     break
             if editform:
                 environ.update({'HGEDITFORM': editform})
+            if pending:
+                environ.update({'HG_PENDING': pending})
 
             editor = self.geteditor()