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

Sune Foldager cryo at cyanite.org
Wed Apr 14 06:31:56 CDT 2010


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. But the push 
one sounds better than now. Of course since there is only one function 
to resolve this, it would mess the code a bit up :-p.

/Sune


More information about the Mercurial-devel mailing list