Steve Losh <steve@stevelosh.com> [Mon, 12 Apr 2010 19:33:25 -0400] rev 10960
commands: add more robust support for 'hg log -b' (issue2078)
Fixes issue2078 and adds tests to cover various 'hg log -b' uses.
This change adds a localrepo.lookupbranch(key, remote=None) function. This
will look up the branch of the revision with the given key. The algorithm
works like this:
* If a remote repo is given and KEY is the name of a branch in that repo,
return KEY.
* If no remote repo is given and KEY is the name of a branch in the local
repo object, return KEY.
* Otherwise look up the revision with the identifier KEY in the local repo
and return its branch.
This change also makes 'hg log -b' use this new functionality and adds a few
tests for it.
Matt Mackall <mpm@selenic.com> [Mon, 19 Apr 2010 16:47:44 -0500] rev 10959
highlight: fix to work with caching templater
Matt Mackall <mpm@selenic.com> [Mon, 19 Apr 2010 16:47:44 -0500] rev 10958
debugcomplete: don't list deprecated options
Steve Losh <steve@stevelosh.com> [Sun, 18 Apr 2010 18:18:19 -0400] rev 10957
commands: Add 'hg log --branch' and deprecate 'hg log --only-branch'
Switching to --branch makes log consistent with push/pull and make more sense
given the actual behavior of the option (you can specify -b multiple times to
include multiple branches).
This change also adds some tests for 'hg log -b'.