jrw*_*ren 11
我问过irc
mpm说
hg diff > mychanges; hg up -C somewhere; hg import --no-commit mychanges
Run Code Online (Sandbox Code Playgroud)
我考虑过但是我试图避免的.
d70说
i think you can easily do it by "hg update"ing to a changeset that is a
parent of the branch you're trying to switch to, and then "hg update"ing to the
tip of that branch
Run Code Online (Sandbox Code Playgroud)
所以我做到了
hg up -r <shared root rev>
hg up branchIwant
Run Code Online (Sandbox Code Playgroud)
我询问"为什么",并被告知"你不允许更新分支",这对我来说起初没有意义.然后我意识到,因为我经历了共享的根转,它不是跨越分支.