[PATCH] bookmarks: do nothing if commit was not successful
Dmitriy Taychenachev
dimichxp at gmail.com
Sun Oct 26 04:10:44 CDT 2008
# HG changeset patch
# User Dmitriy Taychenachev <dimichxp at gmail.com>
# Date 1225012128 -28800
# Node ID 5c5f009e2f47f0c6cb3755366c9019c11ef2ac9a
# Parent 708ce4354253e977668cf21fdcc7fb1350bab757
bookmarks: do nothing if commit was not successful.
diff --git a/hgext/bookmarks.py b/hgext/bookmarks.py
--- a/hgext/bookmarks.py
+++ b/hgext/bookmarks.py
@@ -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],)
More information about the Mercurial-devel
mailing list