equal
deleted
inserted
replaced
6 # GNU General Public License version 2 or any later version. |
6 # GNU General Public License version 2 or any later version. |
7 |
7 |
8 from __future__ import absolute_import |
8 from __future__ import absolute_import |
9 |
9 |
10 from .i18n import _ |
10 from .i18n import _ |
11 from .node import ( |
11 from .node import nullrev |
12 nullid, |
|
13 nullrev, |
|
14 ) |
|
15 from . import ( |
12 from . import ( |
16 error, |
13 error, |
17 revlog, |
14 revlog, |
18 ) |
15 ) |
19 from .interfaces import ( |
16 from .interfaces import ( |
40 |
37 |
41 def __iter__(self): |
38 def __iter__(self): |
42 return self._revlog.__iter__() |
39 return self._revlog.__iter__() |
43 |
40 |
44 def hasnode(self, node): |
41 def hasnode(self, node): |
45 if node in (nullid, nullrev): |
42 if node in (self.nullid, nullrev): |
46 return False |
43 return False |
47 |
44 |
48 try: |
45 try: |
49 self._revlog.rev(node) |
46 self._revlog.rev(node) |
50 return True |
47 return True |