Mercurial > public > develkit
comparison scripts/hg-audit.sh @ 213:40316e0cdef2
add hg audit report script
author | smith@nwoca.org |
---|---|
date | Thu, 28 Apr 2016 19:27:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
212:349fca275129 | 213:40316e0cdef2 |
---|---|
1 /** | |
2 Creates abbreivated changeset log report of all HG repos under the current directory. | |
3 Adjust the date before executing. | |
4 */ | |
5 | |
6 | |
7 template = "{date|isodate}\\t{rev}:{node|short}\\t{author|user}\\t{desc|firstline}\\t{files}\\n" | |
8 | |
9 cmd = 'log -d">2015-04-01" --template "' + template + '"' | |
10 new File(".").eachDirRecurse { d -> | |
11 | |
12 if ( new File(d,".hg").exists() ) { | |
13 def out = new File("${d.name}-changesets.txt") | |
14 out.delete() | |
15 out << "$d.name: $cmd \n-----------------------------------" | |
16 out << "hg -R ${d.absolutePath} ${cmd}".execute().text | |
17 | |
18 } | |
19 } | |
20 // hg log -l 10 --template "{date|isodate}\t{rev}:{node|short}\t{author}\t{desc}\t{files}\n" | |
21 |