[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15375 - gauger
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15375 - gauger |
Date: |
Wed, 1 Jun 2011 05:04:32 +0200 |
Author: bartpolot
Date: 2011-06-01 05:04:32 +0200 (Wed, 01 Jun 2011)
New Revision: 15375
Modified:
gauger/gauger
Log:
Added revision number extraction for gaguer client
Modified: gauger/gauger
===================================================================
--- gauger/gauger 2011-06-01 02:54:57 UTC (rev 15374)
+++ gauger/gauger 2011-06-01 03:04:32 UTC (rev 15375)
@@ -95,6 +95,8 @@
help="port on which to connect")
parser.add_argument('--check', action='store_true',
help="check if gauger is correctly configured and exit")
+ parser.add_argument('--revision', action='store_true',
+ help="return the revision number for the current directory")
args = parser.parse_args()
return args
@@ -112,13 +114,6 @@
print >> sys.stderr, "please put 'remoteurl username password' in
gauger-cli.conf"
exit(1)
-if(args.check):
- exit(0)
-else:
- if(not args.name or not args.data or not args.unit):
- print >> sys.stderr, "NAME, DATA and UNIT are mandatory when sending
data to server"
- exit(1)
-
if(args.id):
revision = args.id
elif(os.path.exists('.svn')):
@@ -139,6 +134,17 @@
print >> sys.stderr, "or specify an identifier at runtime with the --id
option"
exit(1)
+if(args.revision):
+ print revision
+ exit(0)
+
+if(args.check):
+ exit(0)
+else:
+ if(not args.name or not args.data or not args.unit):
+ print >> sys.stderr, "NAME, DATA and UNIT are mandatory when sending
data to server"
+ exit(1)
+
args.category = esc_separators(args.category)
args.name = esc_separators(args.name)
args.unit = esc_separators(args.unit)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15375 - gauger,
gnunet <=