Mercurial workflow with subrepositories and offline clones? -
i'm offline lot.
so normally, use 1 local clone "hub" features, bugs, etc.
hg clone local-hub bug-123
works offline. cool.
can use similar workflow if project contains remote subrepositories?
because, if .hgsub says
sub/shared = http://server/hg/shared
hg clone says
abort: error: getaddrinfo failed
note once clone created (while connected), push
, pull
use path in subrepo's hgrc
(instead of location in .hgsub
). can point local clone , cool.
but clone
looks @ .hgsub
(as it's supposed to). if "blessed" subrepo on server, can't create new clones offline, though files need right there.
this problem, right?
ideally whomever set project uses relative urls in .hgsub file this:
sub/shared = ../shared
and then, of course, makes shared sibling of main repo. long have cloned down main repo , subs (as siblings) work out.
if they've used absolute urls in .hgsub file can work around using subpaths section in .hgrc this:
[subpaths] http://server/hg/shared = ../shared
which provides translation layer in client.
Comments
Post a Comment