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

mercurial.cmdutil.revrange moved to scmutil

see mercurial change b33f3e35efb0

Changeset e850158a0277

Parent 88a2b9aac638

by Adrian Buehlmann

Changes to 3 files · Browse files at e850158a0277 Showing diff from parent 88a2b9aac638 Diff from another changeset...

 
88
89
90
91
92
 
 
93
94
95
 
88
89
90
 
 
91
92
93
94
95
@@ -88,8 +88,8 @@
    def _initchangesets(self, revs):   def purerevs(revs): - return cmdutil.revrange(self._repo, - iter(str(e) for e in revs)) + return hglib.revrange(self._repo, + iter(str(e) for e in revs))     self._changesets = _ChangesetsModel(self._repo,   # TODO: [':'] is inefficient
 
195
196
197
198
199
 
 
200
201
202
 
195
196
197
 
 
198
199
200
201
202
@@ -195,8 +195,8 @@
    def initChangesets(self, revs, selected_revs=None):   def purerevs(revs): - return cmdutil.revrange(self.repo, - iter(str(e) for e in revs)) + return hglib.revrange(self.repo, + iter(str(e) for e in revs))   if selected_revs:   selectedrevs = purerevs(selected_revs)   else:
 
26
27
28
29
 
30
31
32
33
34
35
 
36
37
38
39
40
41
 
42
43
 
 
 
 
 
 
44
45
46
 
26
27
28
 
29
30
31
32
33
34
 
35
36
37
38
39
40
 
41
42
43
44
45
46
47
48
49
50
51
52
@@ -26,21 +26,27 @@
 try:   # hg >= 1.9   from mercurial.util import localpath -except ImportError: +except (ImportError, AttributeError):   # hg <= 1.8   from mercurial.hg import localpath  try:   # hg >= 1.9   from mercurial.util import hidepassword, removeauth -except ImportError: +except (ImportError, AttributeError):   # hg <= 1.8   from mercurial.url import hidepassword, removeauth  try:   # hg >= 1.9   from mercurial.httpconnection import readauthforuri -except ImportError: +except (ImportError, AttributeError):   # hg <= 1.8   from mercurial.url import readauthforuri +try: + # hg >= 1.9 + from mercurial.scmutil import revrange +except (ImportError, AttributeError): + # hg <= 1.8 + from mercurial.cmdutil import revrange  demandimport.enable()    def revsetmatch(ui, pattern):