You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2018/05/23 17:46:39 UTC
[incubator-ponymail] branch master updated: Exit if no valid change
specified
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git
The following commit(s) were added to refs/heads/master by this push:
new 804b1a8 Exit if no valid change specified
804b1a8 is described below
commit 804b1a8091e3df9972b602fe0f17a38991391c47
Author: Sebb <se...@apache.org>
AuthorDate: Wed May 23 18:46:38 2018 +0100
Exit if no valid change specified
ALso improve display text
---
tools/copy-list.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tools/copy-list.py b/tools/copy-list.py
index e81b4b8..e727530 100755
--- a/tools/copy-list.py
+++ b/tools/copy-list.py
@@ -107,9 +107,14 @@ if newdb and not targetLID:
if targetLID:
targetLID = "<%s>" % targetLID.replace("@", ".").strip("<>")
+
+if targetLID == sourceLID and not newdb:
+ print("Nothing to do! Target same as source")
+ parser.print_help()
+ sys.exit(-1)
print("Beginning list copy:")
-print(" - List ID: %s" % sourceLID)
+print(" - Source ID: %s" % sourceLID)
if targetLID:
print(" - Target ID: %s" % targetLID)
if newdb:
--
To stop receiving notification emails like this one, please contact
sebb@apache.org.