[PATCH] commands: add support for 'hg log -b .' (issue2078)
Steve Losh
steve at stevelosh.com
Tue Apr 13 08:34:45 CDT 2010
On Apr 13, 2010, at 7:23 AM, Sune Foldager wrote:
> On 13-04-2010 01:59, Steve Losh wrote:
>> On Apr 12, 2010, at 7:56 PM, Matt Mackall wrote:
>>>
>>> I think this should be more generic. '-b .' should read as 'the branch
>>> that the working directory is on' so '-b<rev>' should similarly read as
>>> 'the branch<rev>' is on. In other words:
>>>
>>> branch = repo[rev].branch()
>>
>> What about:
>>
>> hg branch 123
>> ... commit ...
>> hg update default
>> hg log -b 123
>>
>> Would that list changesets in revision 123's branch or changesets in branch 123?
>
> Also, in case of hg incoming/pull, we really can't meaningfully interpret anything that isn't a branch (or . which is special cased), since we don't have the necessary information in the protocol.
Technically 'pull -b .' would seem to mean "pull the branch that the remote is currently on" and you're right, that wouldn't be good because there's no way to tell.
I think it might be worth it to special-case '.' for pull though, so that 'hg pull -b .' would mean "pull the branch I'm currently working on." I think a lot of people might find it useful.
>
> /Sune
More information about the Mercurial-devel
mailing list