This is an archive of the discontinued Mercurial Phabricator instance.

clone: update to active bookmark, if set
ClosedPublic

Authored by danchr on Dec 20 2020, 1:34 PM.

Details

Summary

This cannot happen during a normal Mercurial clone, but is useful for extensions like hg-git where we know what to check out — the Git HEAD — but do not wish to track it later on using the @ bookmark.

Test Plan

I have not included an explicit test, as this is much more easily tested within the hg-git test suite.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

danchr created this revision.Dec 20 2020, 1:34 PM
danchr edited the summary of this revision. (Show Details)Dec 22 2020, 7:29 AM
danchr edited the test plan for this revision. (Show Details)
danchr edited the summary of this revision. (Show Details)
pulkit accepted this revision.Jan 2 2021, 11:19 AM
This revision is now accepted and ready to land.Jan 2 2021, 11:19 AM
marmoute accepted this revision.Jan 7 2021, 6:24 PM
marmoute added a subscriber: marmoute.

This looks good to me.