[patch 4/7] Add an optional map of specific revisions for
changegroup to include
Matt Mackall
mpm at selenic.com
Mon Aug 22 15:14:27 CDT 2005
On Mon, Aug 22, 2005 at 01:44:38PM -0400, Chris Mason wrote:
> # HG changeset patch
> # User mason at suse.com
> Add an optional map of specific revisions for changegroup to include
>
> The default logic in changegroup simply finds all newer revisions than
> each of the basenodes passed in. When trying to create a changegroup
> with only specific revs, changegroup needs to know exactly which
> revisions to include.
>
> Also, it is possible for a specific file revision to be linked to more
> than one changeset. The default logic might not include some file
> revisions because they are actually linked into an older changeset.
>
> This patch sends a revision map to changegroup, the revision map is a
> hash of filenames containing a hash of changeset revisions:
>
> revmap['filename'][changeset id] = filerev
>
> revmap['filename'] is passed to the revlog.group() method so the proper
> file revisions can be found for a given list of changesets.
Can we make a wrapper around newer that generates this map and get rid
of the conditional code?
This could use a bit more in the way of comments, too. Same for the
strip code.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list