Why 'hg mv' (mercurial) doesn't move a file's history by default?

后端 未结 3 672
后悔当初
后悔当初 2020-12-08 13:13

I know how to do it, I just can\'t understand why hg mv doesn\'t move the file\'s history as well by default.

It really seems silly to be obligated me t

3条回答
  •  猫巷女王i
    2020-12-08 13:46

    You don't know how to do it. hg log --follow affects how the log is displayed, not how the actual move is done. By default, the history of the filename is displayed. --follow follows renames and copies. This fits with how Mercurial is internally implemented.

    There is no reason whatsoever to run hg log --follow before hg mv.

提交回复
热议问题