[PATCH 2 of 3 STABLE] commands: make outgoing-like commands sensitive to branch in URL (issue3829)
FUJIWARA Katsunori
foozy at lares.dti.ne.jp
Mon Feb 18 00:09:59 CST 2013
At Mon, 18 Feb 2013 00:26:36 +0900,
FUJIWARA Katsunori wrote:
>
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
> # Date 1361113469 -32400
> # Branch stable
> # Node ID 373c150caa5f20ae975e086b8f211811afbd1687
> # Parent f63d2a3d62855a430b7a4323bbfaef1e696dc471
> commands: make outgoing-like commands sensitive to branch in URL (issue3829)
>
> Before this patch, commands below are not sensitive to the branch
> specified in the URL of the destination repository, even though "hg
> push"/"hg outgoing" are so:
>
> - hg histedit --outgoing
> - hg summary --remote
>
> These invoke "discovery.findcommonoutgoing()" without "onlyheads"
> argument, so it returns revisions on branches other than the one
> specified in the URL, too.
>
> This patch specifies heads revisions, which are already detected by
> "hg.addbranchrevs()" and "repo.lookup()", as "onlyheads" to
> "discovery.findcommonoutgoing()" to limit calculation of outgoing
> revisions.
>
> This patch also removes "repo.changelog.nodesbetween()" invocations in
> largefiles extension, because it is meaningless if
> "discovery.findcommonoutgoing()" is invoked with "onlyheads".
I folded also modifications for largefiles into this patch, because of
similar "discovery.findcommonoutgoing()" fix.
But this is not bug fix, but a kind of refactoring. So, I'll split
this into bug fix for summary/histedit and refactoring for largefiles,
and resend them separately.
----------------------------------------------------------------------
[FUJIWARA Katsunori] foozy at lares.dti.ne.jp
More information about the Mercurial-devel
mailing list