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

Benoit Boissinot bboissin at gmail.com
Wed Apr 14 06:49:06 CDT 2010


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?

It means you somehow know the name of a remote rev, but nobody told you
the branch name. And it would be less consistent with the '.' case.

Cheers,

Benoit

-- 
:wq


More information about the Mercurial-devel mailing list