Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.1, 2.1.1, and 2.1.2

contrib/hg: mercurial.util.set_binary was renamed to setbinary

Changeset 9add2d4511ce

Parent 1a6efc20ee31

by Adrian Buehlmann

Changes to one file · Browse files at 9add2d4511ce Showing diff from parent 1a6efc20ee31 Diff from another changeset...

Change 1 of 1 Show Entire File contrib/​hg Stacked
 
30
31
32
 
 
 
 
 
 
33
34
 
35
36
 
30
31
32
33
34
35
36
37
38
39
 
40
41
42
@@ -30,7 +30,13 @@
 import mercurial.util  import mercurial.dispatch   +def _setbinary(fp): + if hasattr(mercurial.util, 'setbinary'): + return mercurial.util.setbinary(fp) # >= 1.9 + else: + return mercurial.util.set_binary(fp) +  for fp in (sys.stdin, sys.stdout, sys.stderr): - mercurial.util.set_binary(fp) + _setbinary(fp)    mercurial.dispatch.run()