The mercurial documentation recommends to use trivial relative paths in .hgsub
and use [subpaths]
to map to the absolute paths. I don't fully understand the reasoning behind this. The argument on the documentation page is that absolute paths are more likely to change. Wouldn't the solution with [subpaths]
require a change, too, whenever the absolute path changes?
One reason I can understand (but it doesn't apply in my case) is that clones of clones are only possible using [subpaths]
to remap full original paths to the absolute path. If absolute paths would be used directly, the clone of the clone would push/pull from the original and not the first clone. Is this the only reason against using absolute paths without a [subpaths]
section?