hg push with mq applied

Brendan Cully brendan at kublai.com
Fri May 25 14:31:55 UTC 2007


On Thursday, 24 May 2007 at 19:47, Bernd Schubert wrote:
> Hi,
> 
> I'm adding patches to a project and I'm doing this on my local disk. In
> order store this to save (backuped) storage I would like to push everything
> to the backuped dir,  but this fails with 
> 
> abort: source has mq patches applied
> 
> Well I know that it has mq patches applied and I would like to push these
> patches as well.
> 
> Any idea what I should do?

As others have pointed out, it's usually not a great idea to push mq
patches to another repository. The reason they're under mq control is
presumably that they will be popped and reapplied later. When this
happens, your remote replica will end up with dangling heads from the
older versions.

If you really want to force it, push -r will allow you to push with mq
patches applied. But it's much better to version .hg/patches. You can
set up a trivial hook to push .hg/patches when you push the main
repository.



More information about the Mercurial mailing list