Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add "print-tags" command, for use in VOTE emails.

  • Loading branch information...
commit f0612f21fb519501ba0edc34a5c39f671ca3524c 1 parent 0d7d296
@agrieve agrieve authored
Showing with 26 additions and 0 deletions.
  1. +26 −0 coho
View
26 coho
@@ -621,6 +621,28 @@ function verifyArchiveCommand(argv) {
});
}
+function printTagsCommand(argv) {
+ var opt = registerRepoFlag(optimist)
+ opt = registerHelpFlag(opt);
+ var argv = opt
+ .usage('Prints out tags & hashes for the given repos. Used in VOTE emails.\n' +
+ '\n' +
+ 'Usage: $0 print-tags -r plugman -r cli')
+ .argv;
+
+ if (argv.h) {
+ optimist.showHelp();
+ process.exit(1);
+ }
+ var repos = computeReposFromFlag(argv.r);
+
+ forEachRepo(repos, function(repo) {
+ var tag = findMostRecentTag();
+ var ref = execHelper('git show-ref ' + tag, true);
+ console.log(' ' + repo.repoName + ': ' + tag.replace(/^r/, '') + ' (' + ref.slice(0, 10) + ')');
+ });
+}
+
function createReleaseCommand(argv) {
var opt = registerRepoFlag(optimist)
opt = opt
@@ -1999,6 +2021,10 @@ function main() {
desc: 'Checks that archives are properly signed and hashed.',
entryPoint: verifyArchiveCommand
}, {
+ name: 'print-tags',
+ desc: 'Prints out tags & hashes for the given repos. Used in VOTE emails.',
+ entryPoint: printTagsCommand
+ }, {
name: 'upload-release',
desc: 'Uploads a signed .zip to Cordova\'s webserver.',
entryPoint: apacheUpload
Please sign in to comment.
Something went wrong with that request. Please try again.