[PATCH] subrepo: share instead of clone if the parent repo is shared (issue5675) (BC)
Yuya Nishihara
yuya at tcha.org
Tue Oct 17 08:27:26 EDT 2017
On Mon, 16 Oct 2017 22:40:21 -0400, Matt Harbison wrote:
> On Mon, 16 Oct 2017 10:36:22 -0400, Yuya Nishihara <yuya at tcha.org> wrote:
> > On Mon, 16 Oct 2017 09:21:24 -0400, Matt Harbison wrote:
> >> + shared = hg.share(self._repo._subparent.baseui,
> >> + other, self._repo.root,
> >> + update=False, bookmarks=False)
> >
> > Perhaps bookmarks option should follow the parentrepo's, but that can be
> > addressed later.
>
> I wondered about that. But since the subrepo update may be deferred, and
> I don't think the -B for the original share command is preserved, I wasn't
> sure how. (I don't think we can infer that -B was used, just because
> there are bookmarks, right?)
It's stored in .hg/shared file.
More information about the Mercurial-devel
mailing list