Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8.1, 0.8.2, and 0.8.3

hgtk: improve handling of version mismatch

Perform the check earlier, before the skew can cause errors.
Print a nice message and quit, don't generate a bug report.

Changeset 774617fd1cc6

Parent 1460eb80053c

by Steve Borho

Changes to one file · Browse files at 774617fd1cc6 Showing diff from parent 1460eb80053c Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgtk.py Stacked
 
155
156
157
 
 
 
 
 
158
159
160
 
214
215
216
217
218
219
220
 
155
156
157
158
159
160
161
162
163
164
165
 
219
220
221
 
222
223
224
@@ -155,6 +155,11 @@
 def _runcatch(ui, args):   try:   try: + checkhgversion(hglib.hgversion) + except util.Abort, inst: + ui.status(_("abort: %s!\n") % inst) + return 0 + try:   return runcommand(ui, args)   finally:   ui.flush() @@ -214,7 +219,6 @@
  raise hglib.RepoError(_("There is no Mercurial repository here"   " (.hg not found)"))   - checkhgversion(hglib.hgversion)   try:   return func(ui, *args, **cmdoptions)   except TypeError, inst: