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

后端 未结 3 671
后悔当初
后悔当初 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条回答
  •  无人及你
    2020-12-08 14:05

    You can can change the default behaviour of log: in your ~/.hgrc (or somewhere/Mercurial.ini), add

    [alias] 
    log = log -f 
    

    I've read the appearance of the log is for speed reason. Move isn't truly a "first level" operation in Mercurial. It's a copy + delete (this compared to Bazaar where the move/rename is a "first level" operation but that doesn't have a copy with history preservation).

提交回复
热议问题