Mercurial > hg
changeset 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 | 4ba89b6d0e05 |
children | 7e2e3aacc5dc |
files | hgext/bookmarks.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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],)