1. Benoit Boissinot
  2. mercurial/crew/tonfa/http

Commits

Dmitriy Taychenachev  committed 3cbadcf

bookmarks: do nothing if commit was not successful.

  • Participants
  • Parent commits 4ba89b6
  • Branches default

Comments (0)

Files changed (1)

File hgext/bookmarks.py

View file
  • Ignore whitespace
             """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],)