[PATCH] commands: add support for 'hg log -b .' (issue2078)

Sune Foldager cryo at cyanite.org
Wed Apr 14 06:52:22 CDT 2010


On 14-04-2010 13:49, Benoit Boissinot wrote:
> On Wed, Apr 14, 2010 at 01:31:56PM +0200, Sune Foldager wrote:
>> On 14-04-2010 13:27, Benoit Boissinot wrote:
>>> Could the algorithm be like:
>>>
>>> pull:
>>> -----
>>>
>>> if b not in remoterepo.branchmap:
>>>    b = localrepo[b].branch()
>>> revs = remoterepo.branchmap[b]
>>>
>>> push:
>>> -----
>>>
>>> if b not in localrepo.branchmap:
>>>    b = localrepo[b].branch()
>>> revs = localrepo.branchmap[b]
>>
>> Currently, I believe the algorithm is:
>>
>> if not in branchmap, use directly as rev
>>
>> for both operations. I am not sure I like your pull suggestion
>> above, since (ignoring the . special case) all lookups are remote.
>
> Is there a useful usecase where you want to know the branch name of a
> remote rev?

No... in all honesty, I think I would prefer -b foo to fail for unknown 
branch foo (but still keep .)

/Sune


More information about the Mercurial-devel mailing list