Patchwork [1,of,3] ui: allow edit() to work with revision extras

login
register
mail settings
Submitter Alexander Drozdov
Date Feb. 6, 2014, 9:54 a.m.
Message ID <52F35BDD.8070506@gmail.com>
Download mbox | patch
Permalink /patch/3490/
State Superseded
Headers show

Comments

Alexander Drozdov - Feb. 6, 2014, 9:54 a.m.
# HG changeset patch
# User Alexander Drozdov <al.drozdov@gmail.com>
# Date 1391672308 -14400
#      Thu Feb 06 11:38:28 2014 +0400
# Node ID 0946be793f356c54ef3a8f4f0de2819d8625c51a
# Parent  aa51392da50763f3e7b9ec40acc3a97682488b66
ui: allow edit() to work with revision extras

Make edit() to accept optional 'extra' dictionary.

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -712,7 +712,7 @@ 
          if self.debugflag:
              opts['label'] = opts.get('label', '') + ' ui.debug'
              self.write(*msg, **opts)
-    def edit(self, text, user):
+    def edit(self, text, user, extra={}):
          (fd, name) = tempfile.mkstemp(prefix="hg-editor-", suffix=".txt",
                                        text=True)
          try: