Show More
@@ -8,6 +8,7 b'' | |||||
8 | from __future__ import absolute_import |
|
8 | from __future__ import absolute_import | |
9 |
|
9 | |||
10 | from mercurial import ( |
|
10 | from mercurial import ( | |
|
11 | error, | |||
11 | manifest, |
|
12 | manifest, | |
12 | revlog, |
|
13 | revlog, | |
13 | util, |
|
14 | util, | |
@@ -67,8 +68,8 b' class excludeddirmanifestctx(manifest.tr' | |||||
67 | return excludeddir(self._dir, self._node) |
|
68 | return excludeddir(self._dir, self._node) | |
68 |
|
69 | |||
69 | def write(self, *args): |
|
70 | def write(self, *args): | |
70 | raise AssertionError('Attempt to write manifest from excluded dir %s' % |
|
71 | raise error.ProgrammingError( | |
71 | self._dir) |
|
72 | 'attempt to write manifest from excluded dir %s' % self._dir) | |
72 |
|
73 | |||
73 | class excludedmanifestrevlog(manifest.manifestrevlog): |
|
74 | class excludedmanifestrevlog(manifest.manifestrevlog): | |
74 | """Stand-in for excluded treemanifest revlogs. |
|
75 | """Stand-in for excluded treemanifest revlogs. | |
@@ -84,20 +85,20 b' class excludedmanifestrevlog(manifest.ma' | |||||
84 | self._dir = dir |
|
85 | self._dir = dir | |
85 |
|
86 | |||
86 | def __len__(self): |
|
87 | def __len__(self): | |
87 | raise AssertionError('Attempt to get length of excluded dir %s' % |
|
88 | raise error.ProgrammingError( | |
88 | self._dir) |
|
89 | 'attempt to get length of excluded dir %s' % self._dir) | |
89 |
|
90 | |||
90 | def rev(self, node): |
|
91 | def rev(self, node): | |
91 | raise AssertionError('Attempt to get rev from excluded dir %s' % |
|
92 | raise error.ProgrammingError( | |
92 | self._dir) |
|
93 | 'attempt to get rev from excluded dir %s' % self._dir) | |
93 |
|
94 | |||
94 | def linkrev(self, node): |
|
95 | def linkrev(self, node): | |
95 | raise AssertionError('Attempt to get linkrev from excluded dir %s' % |
|
96 | raise error.ProgrammingError( | |
96 | self._dir) |
|
97 | 'attempt to get linkrev from excluded dir %s' % self._dir) | |
97 |
|
98 | |||
98 | def node(self, rev): |
|
99 | def node(self, rev): | |
99 | raise AssertionError('Attempt to get node from excluded dir %s' % |
|
100 | raise error.ProgrammingError( | |
100 | self._dir) |
|
101 | 'attempt to get node from excluded dir %s' % self._dir) | |
101 |
|
102 | |||
102 | def add(self, *args, **kwargs): |
|
103 | def add(self, *args, **kwargs): | |
103 | # We should never write entries in dirlogs outside the narrow clone. |
|
104 | # We should never write entries in dirlogs outside the narrow clone. |
General Comments 0
You need to be logged in to leave comments.
Login now