# HG changeset patch # User smith@nwoca.org # Date 1461868049 -3600 # Node ID 40316e0cdef20b868fe7f22ede24727704996509 # Parent 349fca275129419c017df6bf8ca4eb0893d60ed9 add hg audit report script diff -r 349fca275129 -r 40316e0cdef2 scripts/hg-audit.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/hg-audit.sh Thu Apr 28 19:27:29 2016 +0100 @@ -0,0 +1,21 @@ +/** + Creates abbreivated changeset log report of all HG repos under the current directory. + Adjust the date before executing. +*/ + + +template = "{date|isodate}\\t{rev}:{node|short}\\t{author|user}\\t{desc|firstline}\\t{files}\\n" + +cmd = 'log -d">2015-04-01" --template "' + template + '"' +new File(".").eachDirRecurse { d -> + + if ( new File(d,".hg").exists() ) { + def out = new File("${d.name}-changesets.txt") + out.delete() + out << "$d.name: $cmd \n-----------------------------------" + out << "hg -R ${d.absolutePath} ${cmd}".execute().text + + } +} +// hg log -l 10 --template "{date|isodate}\t{rev}:{node|short}\t{author}\t{desc}\t{files}\n" +