commit .hgsubstate after remove from .hgsub
Jérôme Godbout
jerome at bodycad.com
Fri Feb 17 14:23:53 UTC 2017
how does one keep the right sub version between checkout/revision then? is
that kept into the commit action somewhere into the .hg?
I'm a bit confuse how the info inside the .hgsubstate is transfer from one
revision to another. I though that the .hgsubstate was the only place where
this info was kept and since you do want a particular revision not
necessarily the default sub head.
So if I go back to main rev 12, I want the sub to go back to the same
revision when I was using rev 12 too. The way we found to do this is commit
the .hgsubstate but if that information is kept somewhere else I would
remove it from the commit file list.
It does feel strange that the .hgsubstate is not simply a regular commited
file like .hgsub is. But again, maybe there is an underlayer I don't see at
work here.
Thanks,
Jerome
[image: bodycad] <https://www.bodycad.com/>
Jerome Godbout
Software Developer
2035 rue du Haut-Bord, Québec, QC, Canada. G1N 4R7
T: +1 418 527-1388
E: jerome at bodycad.com
www.bodycad.com
The contents of this email message and any attachments are intended solely
for the addressee(s) and may contain confidential and/or privileged
information and may be legally protected from disclosure. If you are not
the intended recipient of this message or their agent, or if this message
has been addressed to you in error, please immediately alert the sender by
reply email and then delete this message and any attachments. If you are
not the intended recipient, you are hereby notified that any use,
dissemination, copying, or storage of this message or its attachments is
strictly prohibited.
Le contenu de ce message et les pièces jointes sont destinés uniquement
pour le(s) destinataire(s) et peuvent contenir des informations
confidentielles et / ou privilégiées qui peuvent être protégées légalement
contre toute divulgation. Si vous n'êtes pas le destinataire de ce message
ou son agent, ou si ce message vous a été adressé par erreur, s’il vous
plaît avertir immédiatement l'expéditeur par courriel de réponse, puis
supprimer ce message et les pièces jointes. Si vous n'êtes pas le
destinataire prévu, vous êtes par la présente informé que toute
utilisation, diffusion, copie, ou stockage de ce message ou de ses pièces
jointes est strictement interdit.
On Fri, Feb 17, 2017 at 8:58 AM, Yuya Nishihara <yuya at tcha.org> wrote:
> On Thu, 16 Feb 2017 16:07:59 -0500, Jérôme Godbout wrote:
> > First we have a main repos with both .hgsub and .hgsubstate commited into
> > the main repos itself.
> >
> > We had a sub repos we wanted to be removed so we end up removing the
> entry
> > from the .hgsub file of the main repos.
> >
> > But we don't seem to be able to commit the .hgsubstate and this give us
> > some problems and warnings when updating and merging after this.
>
> It appears .hgsubstate is updated automatically, so you only need to edit
> .hgsub and commit.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20170217/6ca1b1b2/attachment-0002.html>
More information about the Mercurial
mailing list