如何在 Mercurial 中检查当前分支的最新版本?

How to checkout most recent revision of the current branch in Mercurial?

假设我更新到工作目录中的旧版本以进行一些测试,现在我想切换回最新版本。
我以为 tip 可以解决问题,但不是,这个标签是 repo 上的最新修订版,不仅在我当前的分支中。

是否有任何标签要更新到这意味着 "most recent commit of your current branch"?

hg update 不带参数就可以了。当您不指定任何修订时,update 命令将自动更新到当前分支的最新提交。毕竟那很容易。

If no changeset is specified, update to the tip of the current named branch and move the active bookmark

https://www.mercurial-scm.org/doc/hg.1.html#update