[PATCH 2 of 4] bookmarks: Wrap commictx instead of commit (issue 1515)

David Soria Parra sn_ at gmx.net
Thu Jul 23 17:58:33 CDT 2009


# HG changeset patch
# User David Soria Parra <dsp at php.net>
# Date 1248386664 -7200
# Node ID 5a9016338ac60df6a5babfee15f909cbc5d2398a
# Parent  c97c15f8ecc9c5175a3c68e5a0b40e7e2ef94dad
bookmarks: Wrap commictx instead of commit (issue 1515)

diff --git a/hgext/bookmarks.py b/hgext/bookmarks.py
--- a/hgext/bookmarks.py
+++ b/hgext/bookmarks.py
@@ -249,12 +249,12 @@
                 key = self._bookmarks[key]
             return super(bookmark_repo, self).lookup(key)
 
-        def commit(self, *k, **kw):
+        def commitctx(self, ctx, error=False):
             """Add a revision to the repository and
             move the bookmark"""
             wlock = self.wlock() # do both commit and bookmark with lock held
             try:
-                node  = super(bookmark_repo, self).commit(*k, **kw)
+                node  = super(bookmark_repo, self).commitctx(ctx, error)
                 if node is None:
                     return None
                 parents = self.changelog.parents(node)


More information about the Mercurial-devel mailing list