[Bug 6889] New: Unclear how to tell in advance where plain `hg update' will send you or how to go back

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Wed Jul 10 13:50:16 UTC 2024


https://bz.mercurial-scm.org/show_bug.cgi?id=6889

            Bug ID: 6889
           Summary: Unclear how to tell in advance where plain `hg update'
                    will send you or how to go back
           Product: Mercurial
           Version: 6.7.4
          Hardware: PC
                OS: NetBSD
            Status: UNCONFIRMED
          Severity: feature
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: mercurial-bugzilla at campbell.mumble.net
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

`hg update' (with no [-r] REV argument) will pick some reasonable choice of
changeset to update to.

But it's not clear how to tell in advance what changeset that will be,
particularly if there's multiple heads and topics involved.

And if I do that and find it's not where I wanted to go, but I didn't record in
advance what `hg parent' or `hg log -r .' or whatever said, it's not clear how
to go back to the state I was in before.

Is there a way to make `hg update' do a dry run and print what it would update
to (and whether there are any uncommitted changes that would have to be
merged), without actually changing any state?

Failing that, is there a way to reverse the effect of `hg update' and go back
to the changeset I was at before?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list