Great News !!! After one year of constant nagging we test mercurial

Martin Geisler mg at daimi.au.dk
Fri Jun 13 02:20:27 CDT 2008


Kai Grossjohann <kai.grossjohann at verizonbusiness.com> writes:

> Francisco Diaz Trepat - gmail wrote:
>> And finnally if a file is rename, all history is lost. Right? does
>> this happen in all scms?
> I'm surprised that Mercurial loses history across renames. Perhaps
> someone in the know can clear this up?

Don't worry, it doesn't! You indicate a rename with

  hg rename foo bar

and later

  hg log -f bar

will tell you the history of bar and foo. The '-f' flag makes
Mercurial follow renames and copies. I think it is not enabled by
default since it is expensive, but I'm not sure.

The reason why you would want to tell Mercurial about any renames is
to get help in merging later. If someone makes a change to foo
(without knowing about your renaming) you want to have that change
reflected in bar when you pull the change in. This happens
automatically when you remember to mark renames like above.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.



More information about the Mercurial mailing list