[PATCH] bookmarks: do nothing if commit was not successful

David Soria Parra sn_ at gmx.net
Mon Oct 27 07:29:49 CDT 2008


Dmitriy Taychenachev schrieb:
> # 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],)

Queued. Should appear on crew, if they merge with my repository at 
http://bitbucket.org/segv/bookmarks/. Thanks.



More information about the Mercurial-devel mailing list