External paths for subrepositories
Vasiliev Vladimir
vasilievvladimir89 at gmail.com
Fri May 6 20:46:43 UTC 2011
Hello.
I use subrepositories and have found them quite inconvenient to track
changes locally and at bitbucket.org.
Method of setting .hgsub as "Shared = ../Shared" works, but, as i see,
it is not very good for working (e.g. cloning) local (another example:
if i want to push to other repos, the copy of subrepository at the same
level, as main repository, will be updated with changesets, not the
subrepository itself) I saw at hgrc/subpaths then, but, regretfully,
they work only with right parts of .hgsub.
It would be great, if they worked with entire path after substitution -
it is just what i expected. It will make subrepositories much more
flexible, then now, because regular expression allow to set
In this case, for .hgsub "shared=shared" i would use following subpath
section for my bitbucket account:
[subpath]
https://bitbucket.org/user/repository/shared =
https://bitbucket.org/user/shared
Then any problems with local work would end.
Another idea, that I see as good decision for this problem, if i set
.hgsub as "../shared = ../shared" - then shared repository will be
always at the same level, as main repository (like at bitbucket). But
when i tried to do this, mercurial returned error:
"abort. path contains illegal component: ../shared"
Can anyone answer, could at least one of these two features be
implemented in mercurial?
More information about the Mercurial
mailing list