From a971eeddd520d944ca8c03bd3dc1bc8dbcf3b401 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Wed, 18 Apr 2012 11:02:09 +0100 Subject: [PATCH] Correctly determine last commit timestamp for a set of hg files (see #79) --- package-build.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package-build.el b/package-build.el index 26eabcd0..a1e60597 100644 --- a/package-build.el +++ b/package-build.el @@ -303,7 +303,10 @@ seconds; the server cuts off after 10 requests in 20 seconds.") (delete-directory dir t nil)) (print "cloning repository") (pb/run-process nil "hg" "clone" repo dir))) - (pb/run-process dir "hg" "tip" "--style" "compact") + (apply 'pb/run-process dir "hg" "log" "-l1" + (pb/expand-file-list dir + (or (plist-get config :files) + (list "*.el")))) (pb/find-parse-time "\\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [0-9]\\{2\\}:[0-9]\\{2\\}\\)"))))