Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.7.1, 0.7.2, and 0.7.3

hgtk: follow Mercurial's style for version command

Principle of least surprise. hgtk version prints full version and license,
hgtk -q version prints just version.

Changeset 964b7efbd05a

Parent 2e4510e36632

by Steve Borho

Changes to one file · Browse files at 964b7efbd05a Showing diff from parent 2e4510e36632 Diff from another changeset...

Change 1 of 2 Show Entire File contrib/​hgtk Stacked
 
5
6
7
8
 
9
10
11
 
491
492
493
494
495
 
 
 
496
497
498
 
5
6
7
 
8
9
10
11
 
491
492
493
 
 
494
495
496
497
498
499
@@ -5,7 +5,7 @@
 # Copyright (C) 2008-9 Steve Borho <steve@borho.org>  # Copyright (C) 2008 TK Soh <teekaysoh@gmail.com>   -shortlicense = '''\ +shortlicense = '''  Copyright (C) 2009 Steve Borho <steve@borho.org>.  This is free software; see the source for copying conditions. There is NO  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. @@ -491,8 +491,9 @@
 def version(ui, **opts):   """output version and copyright information"""   import hggtk.shlib - ui.write("%s\n" % hggtk.shlib.version()) - if ui.verbose: ui.write(shortlicense) + ui.write("TortoiseHg Dialogs (version %s)\n" % hggtk.shlib.version()) + if not ui.quiet: + ui.write(shortlicense)    globalopts = [   ('R', 'repository', '',