[PATCH 4 of 5 v3] bundle: add config option to include phases

Martin von Zweigbergk martinvonz at google.com
Fri Jun 23 15:43:15 EDT 2017


On Thu, Jun 22, 2017 at 1:52 PM, Martin von Zweigbergk
<martinvonz at google.com> wrote:
> +def updatephases(repo, tr, headsbyphase, addednodes):
> +    """Updates the repo with the given phase heads"""
> +    cl = repo.changelog
> +
> +    # First make all the added revisions secret because changegroup.apply()
> +    # currently sets the phase to draft.
> +    addedroots = [cl.node(rev) for rev in repo.revs('roots(%ln)', addednodes)]
> +    retractboundary(repo, tr, secret, addedroots)

I forgot to simplify this by passing in "addednodes" instead of
"addedroots" (and deleting "addedroots" and "cl"). Since it doesn't
seem like anyone has started reviewing this, I'll just send a v4 with
that in a few minutes. (If someone is just queuing this, I'll just
send a followup instead.)


More information about the Mercurial-devel mailing list