Cat*_*kul 4 git version-control performance mercurial rebase
rebasemercurial 的扩展提供了与git相似的功能rebase。
让rebase执行大约需要4分钟(〜240 s)才能完成100次提交。
在我的想象中,这应该是非常快的,最多只有几秒钟,但是显然我缺少了一些东西。
是什么导致了这么长时间?提交本身是否非常昂贵?
By default, rebase writes to the working copy, but you can configure it to run in-memory for better performance, and to allow it to run if the working copy is dirty.
Just add following lines in your .hgrc file:
[rebase]
experimental.inmemory = True
Run Code Online (Sandbox Code Playgroud)
(To get more configuration for rebase try to run hg help rebase)