Does hg mv a bar/ discard a's history?

Xavier Morel xavier.morel at masklinn.net
Mon Jul 16 16:01:37 CDT 2007


On 16 Jul 2007, at 22:35 , Matthias Luedtke wrote:
> as I am directly arriving from Subversion Plaza where they keep a  
> files'
> history across renames and moves.

That's just a difference in default behavior between SVN and  
Mercurial: SVN defaults to follow-on-copy, mercurial defaults to stop- 
on-copy.

If you want to see the whole history of a file, use hg log -f e.g.  
`hg log -f bar/a`, should work.

Also, if you prefer SVN's behavior (follow-on-copy by default), you  
can change the default behaviour of log: in your ~/.hgrc (or ~/ 
Mercurial.ini), add

[defaults]
log = -f

that should do it


More information about the Mercurial mailing list