[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Future SCM Technology



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

Attachment: pgpTETjCANX7g.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]