Future SCM Technology

Axel Thimm Axel.Thimm at ATrpms.net
Thu Jun 7 21:19:29 UTC 2007


On Thu, Jun 07, 2007 at 03:12:22PM -0400, Jesse Keating wrote:
> On Thursday 07 June 2007 15:01:12 Axel Thimm wrote:
> > I think it is more like "copy, then remove", which is all you really
> > want as the history can be propagated back through the copy/rename
> > operation (-f option to any relevant hg command will do the trick).
> 
> Maybe you know something that I don't, but the last time I looked at this, 
> there was no way in HG to rename a file, but keep change history of that 
> file.  When changing the name you suddenly have no history of that file.

Try

man hg | egrep -2 '(rename|-f)'

E.g.

|        rename [OPTION]... SOURCE... DEST
|           Mark dest as copies of sources; mark sources for deletion. If dest is a directory, copies are put in that directory. If dest is a file, there can only be one source.
[...]
|        log [OPTION]... [FILE]
|           Print the revision history of the specified files or the entire project.
| 
|              File history is shown without following rename or copy history of
|              files.  Use -f/--follow with a file name to follow history across
|              renames and copies.

And similar for hg grep and other history querying commands.
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20070607/e41d9c5e/attachment.sig>


More information about the fedora-devel-list mailing list