hgext/bookmarks.py
changeset 7262 3cbadcf28a4c
parent 7260 eb91b9ce2c19
child 7280 810ca383da9c
--- a/hgext/bookmarks.py	Sat Oct 25 19:05:52 2008 +0200
+++ b/hgext/bookmarks.py	Sun Oct 26 17:08:48 2008 +0800
@@ -184,6 +184,8 @@
             """Add a revision to the repository and
             move the bookmark"""
             node  = super(bookmark_repo, self).commit(*k, **kw)
+            if node == None:
+                return None
             parents = repo.changelog.parents(node)
             if parents[1] == nullid:
                 parents = (parents[0],)