How to get a list of the latest revision number for each file in a Mercurial repository?
Posted
by Kimble
on Stack Overflow
See other posts from Stack Overflow
or by Kimble
Published on 2010-04-06T12:49:32Z
Indexed on
2010/04/06
12:53 UTC
Read the original article
Hit count: 191
mercurial
I have made a build system for my web application that's rewriting all resource url's to include the file's revision number (to improve client caching). As of today I'm running this command for each file to get the revision number:
hg log --template '{rev}\n' path-to-file
Executing hg for each file is really time consuming. Is there a fast way to list all files in a repository with the latest revision number?
© Stack Overflow or respective owner