Hg push tries to push data to repo without any changes
Eric Siegerman
pub08-hg at davor.org
Thu Jan 24 02:52:44 UTC 2013
On 01/23/2013 02:39 PM, Isaac Jurado wrote:
> [...] Mercurial pushes all subrepos recursively
> and there is no way to prevent that. Even though it is annoying, it is
> probably the simplest and most correct way to handle subrepositories for
> now.
Well, there is one way to prevent it: before pushing, "hg update"
the source repo to a changeset that doesn't have a .hgsub file.
(000000000000 will do.)
That'd be pretty annoying for production use -- and it subverts
the whole point of subrepos -- but it works as an emergency
workaround.
Note that it's not enough to simply remove .hgsub and/or
.hgsubstate. It's the working directory's parent cset that
matters, not the working copies of the files themselves.
- Eric
More information about the Mercurial
mailing list