D5477: branches: Added -r option to show branch name(s) of a given rev (Issue5948)

Yuya Nishihara yuya at tcha.org
Mon Dec 24 07:37:28 EST 2018


>          fm.startitem()
> +        rev = ctx.rev()
> +        if opts.get('rev') and rev not in revs:
> +            continue

ctx points to the tipmost branch head. so `rev not in revs` doesn't mean any
of the `revs` do not belong to the branch.


More information about the Mercurial-devel mailing list