cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: Add "print-tags" command, for use in VOTE emails.
Date Sat, 01 Mar 2014 03:11:17 GMT
Repository: cordova-coho
Updated Branches:
  refs/heads/master 0d7d29620 -> f0612f21f


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


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/f0612f21
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/f0612f21
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/f0612f21

Branch: refs/heads/master
Commit: f0612f21fb519501ba0edc34a5c39f671ca3524c
Parents: 0d7d296
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Feb 28 22:09:54 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Feb 28 22:11:02 2014 -0500

----------------------------------------------------------------------
 coho | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/f0612f21/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index db53c0d..b8f9858 100755
--- a/coho
+++ b/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


Mime
View raw message