Best way to push new subrepositories replacing a normal directory?

Benjamin Fritz fritzophrenic at gmail.com
Thu Dec 4 19:02:49 UTC 2014


On Thu, Dec 4, 2014 at 12:40 PM, Benjamin Fritz <fritzophrenic at gmail.com>
wrote:

>
> Furthermore, does it mean I won't ever be able to have a headless
repository with these subrepositories unless I keep the source paths
absolute? Will that even work?

I did find that I can pull to a headless repository just fine (I did not
try pushing) but I imagine there will be problems pulling FROM this
repository down the road when I pull in new changes to my subrepositories.

I did find an answer to whether a "central" server will work, and the
answer is "yes" by using subpaths:
http://mercurial.selenic.com/wiki/Subrepository#Use_.27trivial.27_subrepo_paths_where_possible

Is there a similar capability to subpaths, where I could somehow specify an
alternate path to pull from if the primary path doesn't contain the
changeset specified in the .hgsubstate file?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20141204/c2c6a889/attachment-0002.html>


More information about the Mercurial mailing list