如何使用 mercrial 更新到最新的 'public' 版本?

How to update to latest 'public' revision with mercrial?

有没有办法更新到最新的 public 版本?

我天真地试过了

hg up -r "phase('public')"

但这只吸引了我

hg: parse error: unknown identifier: phase

:-)

我相信你正在尝试做:

hg up -r 'public()'