如何仅在当前分支上执行 pull --rebase

How to do a pull --rebase only on the current branch

我想执行 hg pull -b [branch] --rebase,其中 [branch] 是我当前所在的任何分支。

我该怎么做?

这是我最终得到的解决方案(针对 PowerShell):

hg pull -r $(& hg branch) --rebase