Presenting a clean history: how to synchronize two repositories.
Harvey Chapman
hchapman-hg at 3gfp.com
Tue May 13 19:43:00 UTC 2014
On May 13, 2014, at 3:10 PM, Michael McNeil Forbes <michael.forbes at gmail.com> wrote:
>
> 1) It is hard to learn about the history of the dirty project since there are
> thousands of revisions (especially for a student or new collaborator). I
> would like a clean version of the repo as a pedagogical tool. One possible
> option for this would be a way of "tagging" (not tags though) certain change
> sets so that that hg provides a simple overview of the repo via only those
> tagged changesets (collapsing the intermediate steps as needed, and showing
> only diffs between the tagged changesets etc.) I.e. some sort of metadata
> documenting the clean path through the repo but without actually editing
> history.
> 2) By mistake, we added too much to the repo. I would like to strip out of
> bunch of stuff, and publish a cleaned version for the public at large to use
> (rather than just our core team which will probably stay working on the old
> repo with everything.
The method I had thought to use involved maintaining a separate, “abridged” branch in your dev repo for public exposure. You can use the fold command to collapse lots of little checkins into milestones or features. To accept patches or move things back and forth, you can graft or transplant changesets. Then, you only publish the abridged branch.
Harvey
More information about the Mercurial
mailing list