hg cat and renamed files

Bastian Doetsch bastian.doetsch at gmx.de
Thu Nov 20 06:51:19 UTC 2008


> > 
> > Now I can only hopes, somebody steps ahead and adds the option :)).
> > Unfortunately, I know basically nothing about coding in python...
> 
> That's been the case with most hg contributors. For anyone interested in
> looking at this, you'll have to:
> 
> - add an option to the commands table in commands.py
> - add a branch in the inner loop of commands.py:cat to trace the history
> of each file
> 
> That loop will have to get a filectx for the file in question via
> repo['.'][file] and use its parents() method to trace the tree back to
> the rev in question.
> 
> And then you'll have to deal with:
> 
> - the file not currently existing
> - the file history not going back to rev
> - multiple instances of file at rev
> 


Sounds doable. I'll have a try at implementing it.
Bastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081120/59b4792d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20081120/59b4792d/attachment-0001.asc>


More information about the Mercurial mailing list