[PATCH v2] identify: list bookmarks for remote repositories

David Soria Parra dsp at php.net
Sun Mar 13 07:31:47 CDT 2011


On 2011-03-12, Nils Adermann <naderman at naderman.de> wrote:
> # HG changeset patch
> # User Nils Adermann <naderman at naderman.de>
> # Date 1299950114 -3600
> # Node ID e29a3b20be0c57207faa0e2879d1810242e79e41
> # Parent  1bb2a56a9d73b386378564381807fdf8df38ea3f
> identify: list bookmarks for remote repositories
>
> diff -r 1bb2a56a9d73 -r e29a3b20be0c mercurial/commands.py
> --- a/mercurial/commands.py	Thu Mar 10 13:43:47 2011 +0100
> +++ b/mercurial/commands.py	Sat Mar 12 18:15:14 2011 +0100
> @@ -2267,6 +2267,7 @@
>      output = []
>  
>      revs = []
> +    bms = []
>      if source:
>          source, branches = hg.parseurl(ui.expandpath(source))
>          repo = hg.repository(ui, source)
> @@ -2277,10 +2278,19 @@
>              rev = revs[0]
>          if not rev:
>              rev = "tip"
> -        if num or branch or tags or bookmarks:
> +        if num or branch or tags:
>              raise util.Abort(_("can't query remote revision number,"
>                               " branch, tags, or bookmarks"))

bookmarks should be removed from the abort line



More information about the Mercurial-devel mailing list