Mercurial > hg
diff hgext/bookmarks.py @ 7262:3cbadcf28a4c
bookmarks: do nothing if commit was not successful.
author | Dmitriy Taychenachev <dimichxp@gmail.com> |
---|---|
date | Sun, 26 Oct 2008 17:08:48 +0800 |
parents | eb91b9ce2c19 |
children | 810ca383da9c |
line wrap: on
line diff
--- 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],)