[PATCH] Add 'extra' param to the rawcommit method

Edouard Gomez ed.gomez at free.fr
Sun Dec 17 10:59:19 CST 2006


In order to have a working improved hg-cvs-cimport, i need this patch to
make its way into Mercurial.

It adds the extra param that is available in the commit method.

diff -r f2c4a2ee59ed mercurial/localrepo.py
--- a/mercurial/localrepo.py	Sat Dec 16 14:51:22 2006 -0600
+++ b/mercurial/localrepo.py	Sun Dec 17 02:37:31 2006 +0100
@@ -634,11 +634,11 @@ class localrepository(repo.repository):
         changelist.append(fn)
         return fl.add(t, meta, transaction, linkrev, fp1, fp2)
 
-    def rawcommit(self, files, text, user, date, p1=None, p2=None, wlock=None):
+    def rawcommit(self, files, text, user, date, p1=None, p2=None, wlock=None, extra={}):
         if p1 is None:
             p1, p2 = self.dirstate.parents()
         return self.commit(files=files, text=text, user=user, date=date,
-                           p1=p1, p2=p2, wlock=wlock)
+                           p1=p1, p2=p2, wlock=wlock, extra=extra)
 
     def commit(self, files=None, text="", user=None, date=None,
                match=util.always, force=False, lock=None, wlock=None,


-- 
Edouard Gomez


More information about the Mercurial-devel mailing list