git-cinnabar icon indicating copy to clipboard operation
git-cinnabar copied to clipboard

Subrepository support

Open PioneerAxon opened this issue 10 years ago • 1 comments

Subrepositories [0] are not supported.

This will be easy to set up using git submodules (Just recursively clone each hg:: from .hgsub file using "git submodule add").

[0] : http://mercurial.selenic.com/wiki/Subrepository

PioneerAxon avatar Dec 30 '14 21:12 PioneerAxon

It's not as trivial as it seems:

  • git submodules use "git links" to store the equivalent of .hgsubstate, which means the submodules need to be cloned before the main repo to know their git sha1s. This kind of breaks how git submodules work. At least, this requires some additional integration effort.
  • mercurial subrepos can be used for non-mercurial repos
  • The .hgsub and .hgsubstate file must be left out of the git clone and regenerated from the state of git submodules. This likely will require to store additional state in the git2hg notes, because .hgsub files are not necessarily ordered aiui.

It's not a priority for me, at this point, to implement this.

glandium avatar Jan 05 '15 00:01 glandium