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

hglib: drop compatibility with 0.9.4

thg does not run anymore with hg 0.9.4 (matcher, ...), so drop compatibility code

Changeset a06e45962f68

Parent cee7e0703282

by Simon Heimberg

Changes to one file · Browse files at a06e45962f68 Showing diff from parent cee7e0703282 Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​hglib.py Stacked
 
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
32
33
34
 
305
306
307
308
 
309
310
311
312
 
313
314
315
 
355
356
357
358
 
359
360
361
 
18
19
20
 
 
 
 
 
 
 
 
 
 
 
21
22
23
24
 
295
296
297
 
298
299
300
301
 
302
303
304
305
 
345
346
347
 
348
349
350
351
@@ -18,17 +18,7 @@
  from mercurial.dispatch import ParseError   from mercurial.revlog import LookupError   -from mercurial import demandimport -demandimport.disable() -try: - # Mercurial 0.9.4 - from mercurial.cmdutil import parse - from mercurial.cmdutil import parseconfig as _parseconfig -except: - # Mercurial 0.9.5 - from mercurial.dispatch import _parse as parse - from mercurial.dispatch import _parseconfig -demandimport.enable() +from mercurial import dispatch    try:   from mercurial import encoding @@ -305,11 +295,11 @@
  if hasattr(ui, 'verbosity_constraints'):   # Mercurial 1.2   if config: - for section, name, value in _parseconfig(config): + for section, name, value in dispatch._parseconfig(config):   self.setconfig(section, name, value)   else:   # Mercurial 1.3 - _parseconfig(ui, config) + dispatch._parseconfig(ui, config)     # check for cwd   cwd = _earlygetopt(['--cwd'], args) @@ -355,7 +345,7 @@
  _fallbackencoding = fallback     fullargs = args - cmd, func, args, options, cmdoptions = parse(ui, args) + cmd, func, args, options, cmdoptions = dispatch._parse(ui, args)     if options["encoding"]:   _encoding = options["encoding"]