Some mq questions
Ian van der Neut
ivdneut at gmail.com
Tue Dec 27 15:33:54 UTC 2011
On Fri, Dec 23, 2011 at 11:11 AM, Jakob van Bethlehem <
j.s.van.bethlehem at astro.rug.nl> wrote:
> Hello everyone,
>
> It has been a while since I felt I had to turn to this list, simply
> because I'm doing extremely well with HG.... thanks for that.
>
> So what changed.... well, I'm trying to get a grasp on the mq-extension.
> It happens a lot that I'm working on some changes on the pc at my office,
> then I want to finish some things on my laptop at home. In order to
> synchronize the pc and my laptop until now I explicitly commited changes.
> Since these are not 'full changesets' in the sense that they represented
> 'finished' changes, I do a bunch of rollbacks on both sides until I finish
> the changes at either end. Obviously using mq is much, much better suited
> for the job. If only I could figure out how to synchronize a series of
> patches between my pc and laptop.
>
> Currently I'm struggling with these questions (which are probably just
> misunderstandings):
> * is there any place with up-to-date documentation for mq? Both the WIKI
> and the hg-book (even the web-version) seem outdated (they still refer to
> things like hg qinit and hg qcommit which apparently are deprecated)
> * I kind of expected that when I do 'hg qclone', my patch series would get
> cloned as well. The cloned repository does have the .hg/patches directory,
> but none of the patches get cloned, independent of whether the patches were
> applied at the source and whether I do this locally or through ssh.
> * How should I synchronize patches between my pc and laptop? Is this even
> possible to begin with?
>
>
It's certainly possible. After you've activated the extension, initialize
your mq with 'hg qinit -c'. Then you need to commit your patch changes with
'hg qref' followed by 'hg commit --mq'. Then you can clone your patch
repository with 'hg clone /path/to/repo/.hg/patches
/path/to/new/repo/.hg/patches'. Pulling changes back would be done with 'hg
pull --mq /path/to/new/repo' (Or /path/to/new/repo/.hg/patches not sure
from the top of my head). 'hg push' also has a --mq option that works the
same way as with pull.
The above is the basis of it. Make a dummy repo and experiment with it.
Ian.
--
One man's "magic" is another man's engineering. "Supernatural" is a null
word.
-- Excerpt from the notebooks of Lazarus Long, from Robert Heinlein's "Time
Enough for Love"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111227/66754e5e/attachment-0002.html>
More information about the Mercurial
mailing list