Mercurial > hg > mercurial-crew-with-dirclash
view templates/filediff.tmpl @ 809:d0fb9efa2b2d
Fix performance regression in addremove command.
When I rewrote addremove, I lazily put a call to repo.changes in,
which was unnecessary and slow. This is a new rewrite, preserving the
file name behaviour, but replacing the call to repo.changes with a walk,
which is much cheaper, and avoids calls to os.stat on all but files that
have probably been deleted.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 29 Jul 2005 08:42:28 -0800 |
parents | dbe0ce2ae196 |
children | 17703aa4491e |
line wrap: on
line source
#header# <title>#repo|escape#: #file# diff</title> </head> <body> <div class="buttons"> <a href="?cmd=changelog;rev=#rev#">changelog</a> <a href="?cmd=tags">tags</a> <a href="?cmd=changeset;node=#node#">changeset</a> <a href="?cmd=file;file=#file#;filenode=#filenode#">file</a> <a href="?cmd=filelog;file=#file#;filenode=#filenode#">revisions</a> <a href="?cmd=annotate;file=#file#;filenode=#filenode#">annotate</a> <a href="?cmd=filediff;file=#file#;node=#node#;style=raw">raw</a> </div> <h2>#file#</h2> <table id="filediffEntry"> <tr> <th class="revision">revision #rev#:</th> <td class="revision"><a href="?cmd=changeset;node=#node#">#node|short#</a></td> </tr> #parent# </table> <div id="fileDiff"> #diff# </div> #footer#