You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/05/23 17:16:10 UTC

[cordova-coho] branch janpio-tiny_coho_fixes created (now f27dadc)

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a change to branch janpio-tiny_coho_fixes
in repository https://gitbox.apache.org/repos/asf/cordova-coho.git.


      at f27dadc  additional output to understand what is happening

This branch includes the following new commits:

     new 6b8fac0  improve or fix output
     new f27dadc  additional output to understand what is happening

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[cordova-coho] 01/02: improve or fix output

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-tiny_coho_fixes
in repository https://gitbox.apache.org/repos/asf/cordova-coho.git

commit 6b8fac0738252b06f38dee04a320b6766b7c0da3
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Thu May 23 19:15:27 2019 +0200

    improve or fix output
---
 src/flagutil.js         | 4 ++--
 src/platform-release.js | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/flagutil.js b/src/flagutil.js
index 3e4b054..e2401f9 100644
--- a/src/flagutil.js
+++ b/src/flagutil.js
@@ -46,7 +46,7 @@ exports.computeReposFromFlag = function (flagValue, opts) {
     var includeModules = opts.includeModules;
 
     if (!flagValue) {
-        console.log('No repos specified - using repo in CWD');
+        console.log('No repos specified with `-r` - using repo in CWD');
         flagValue = '.';
     }
     var values = flagValue === true ? [] : Array.isArray(flagValue) ? flagValue : [flagValue];
@@ -86,7 +86,7 @@ exports.computeReposFromFlag = function (flagValue, opts) {
         } else if (group) {
             group.forEach(addRepo);
         } else {
-            apputil.fatal('Invalid repo value: ' + value + '\nUse the list-repos command to see value values.');
+            apputil.fatal('Invalid repo value: ' + value + '\nUse the list-repos command to see valid values.');
         }
     });
     if (!includeSvn) {
diff --git a/src/platform-release.js b/src/platform-release.js
index f8ead5b..bb1a36d 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -203,7 +203,7 @@ exports.prepareReleaseBranchCommand = function * () {
                'Command can also be used to update the JS snapshot after release \n' +
                'branches have been created.\n' +
                '\n' +
-               'Usage: $0 prepare-release-branch -r platform [--version=3.6.0]')
+               'Usage: $0 prepare-platform-release-branch -r platform [--version=3.6.0]')
     );
 
     var repos = flagutil.computeReposFromFlag(argv.r);
@@ -287,7 +287,7 @@ exports.tagReleaseBranchCommand = function * (argv) {
     var argv = configureReleaseCommandFlags(optimist // eslint-disable-line
         .usage('Tags a release branches.\n' +
                '\n' +
-               'Usage: $0 tag-release --version=2.8.0-rc1 -r platform')
+               'Usage: $0 tag-platform-release --version=2.8.0-rc1 -r platform')
         .options('pretend', {
             desc: 'Don\'t actually run git commands, just print out what would be run.',
             type: 'boolean'


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[cordova-coho] 02/02: additional output to understand what is happening

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-tiny_coho_fixes
in repository https://gitbox.apache.org/repos/asf/cordova-coho.git

commit f27dadcd0d74b731c76085cc702c51ff922e18af
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Thu May 23 19:15:40 2019 +0200

    additional output to understand what is happening
---
 src/create-verify-archive.js | 1 +
 src/repoutil.js              | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/src/create-verify-archive.js b/src/create-verify-archive.js
index 5456cf9..8c02944 100644
--- a/src/create-verify-archive.js
+++ b/src/create-verify-archive.js
@@ -84,6 +84,7 @@ exports.createCommand = function * (argv) {
         }
 
         var tag = argv.tag || (yield gitutil.findMostRecentTag(repo.versionPrefix))[0];
+        console.log('Working with tag `' + tag + '`')
         if (!tag) {
             apputil.fatal('Could not find most recent tag. Try running with --tag');
         }
diff --git a/src/repoutil.js b/src/repoutil.js
index 829909e..874105c 100644
--- a/src/repoutil.js
+++ b/src/repoutil.js
@@ -502,6 +502,7 @@ exports.forEachRepo = function * (repos, func) {
             origPath = origPath + '/..';
         }
         var repoDir = getRepoDir(repo);
+        console.log('$ cd ' + repoDir)
         shelljs.cd(repoDir);
 
         if (shelljs.error()) {
@@ -521,6 +522,8 @@ function resolveCwdRepo () {
     for (;;) {
         var value = path.basename(curPath);
         if (getRepoById(value)) {
+            console.log('Working with `' + value + '`');
+
             return value;
         }
         curPath = path.resolve(curPath, '..');


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org