hg archive and timestamps: can I do better?

Cameron Simpson cs at zip.com.au
Sun Oct 25 03:16:39 UTC 2009


On 21Oct2009 08:35, I wrote:
| On 20Oct2009 09:51, Dirkjan Ochtman <dirkjan at ochtman.nl> wrote:
| | On Tue, Oct 20, 2009 at 08:44, Cameron Simpson <cs at zip.com.au> wrote:
| | > So I wrote this bit of code:
| | >    hg log -r "0:$rev" --template '{date|isodate} {files}\n' \
| | > [... note lastest changeset timestamp by file ...]
| | 
| | Untested python code:
[...]
| Ah, excellent. I'll do it that way. Thank you!

If anyone cares my make-a-distro script now starts with:

  hg archive -t files -r "$rev" "$dstdir"
  hg-apply-manifest-dates -r "$rev" "$dstdir"

and hg-apply-manifest-dates can be found here:

  http://www.cskk.ezoshosting.com/cs/css/bin/hg-apply-manifest-dates

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Experience is what you have got after you needed it.



More information about the Mercurial mailing list