Show More
@@ -8,6 +8,7 b'' | |||
|
8 | 8 | from __future__ import absolute_import |
|
9 | 9 | |
|
10 | 10 | from mercurial import ( |
|
11 | error, | |
|
11 | 12 | manifest, |
|
12 | 13 | revlog, |
|
13 | 14 | util, |
@@ -67,8 +68,8 b' class excludeddirmanifestctx(manifest.tr' | |||
|
67 | 68 | return excludeddir(self._dir, self._node) |
|
68 | 69 | |
|
69 | 70 | def write(self, *args): |
|
70 | raise AssertionError('Attempt to write manifest from excluded dir %s' % | |
|
71 | self._dir) | |
|
71 | raise error.ProgrammingError( | |
|
72 | 'attempt to write manifest from excluded dir %s' % self._dir) | |
|
72 | 73 | |
|
73 | 74 | class excludedmanifestrevlog(manifest.manifestrevlog): |
|
74 | 75 | """Stand-in for excluded treemanifest revlogs. |
@@ -84,20 +85,20 b' class excludedmanifestrevlog(manifest.ma' | |||
|
84 | 85 | self._dir = dir |
|
85 | 86 | |
|
86 | 87 | def __len__(self): |
|
87 | raise AssertionError('Attempt to get length of excluded dir %s' % | |
|
88 | self._dir) | |
|
88 | raise error.ProgrammingError( | |
|
89 | 'attempt to get length of excluded dir %s' % self._dir) | |
|
89 | 90 | |
|
90 | 91 | def rev(self, node): |
|
91 | raise AssertionError('Attempt to get rev from excluded dir %s' % | |
|
92 | self._dir) | |
|
92 | raise error.ProgrammingError( | |
|
93 | 'attempt to get rev from excluded dir %s' % self._dir) | |
|
93 | 94 | |
|
94 | 95 | def linkrev(self, node): |
|
95 | raise AssertionError('Attempt to get linkrev from excluded dir %s' % | |
|
96 | self._dir) | |
|
96 | raise error.ProgrammingError( | |
|
97 | 'attempt to get linkrev from excluded dir %s' % self._dir) | |
|
97 | 98 | |
|
98 | 99 | def node(self, rev): |
|
99 | raise AssertionError('Attempt to get node from excluded dir %s' % | |
|
100 | self._dir) | |
|
100 | raise error.ProgrammingError( | |
|
101 | 'attempt to get node from excluded dir %s' % self._dir) | |
|
101 | 102 | |
|
102 | 103 | def add(self, *args, **kwargs): |
|
103 | 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