help with use case
Chris Mason
mason at suse.com
Tue Dec 20 14:02:09 UTC 2005
On Monday 19 December 2005 22:36, Faheem Mitha wrote:
>
> BTW, someone said on IRC that one could do something similar to this
> use case using mq. I don't know how to use mq (the online docs left me
> perplexed). Would anyone care to elaborate?
mq allows you to maintain changesets as patches. They can be applied or
removed, reordered, deleted etc. This is one workload where it can help,
basically making it easy to use hg but still create finalized versions of
your changesets in patch form.
If you aren't already familiar with quilt (which mq is modeled after), it's
probably easiest to follow the example command by command, and look a the
state of the repository and the contents of .hg/patches after each command.
If you just want a quick and dirty mechanism to consolidate patches, something
like this will work with the mq extension:
# export all of your changesets as one patch
hg export rev1 rev2 ... > patchfile
# edit the patch file to change the comments
# remove all # HG changeset patch blocks other than the first one.
vi patchfile
# remove all the revisions you just exported. This will also remove all
# revisions after rev1 from the tree, use with great care.
hg strip rev1
# import the patch
hg import < patchfile
-chris
More information about the Mercurial
mailing list