##// END OF EJS Templates
merge with stable
Matt Mackall -
r18858:f0204564 merge default
parent child Browse files
Show More
@@ -67,3 +67,4 b' f5fbe15ca7449f2c9a3cf817c86d0ae68b307214'
67 67 a6088c05e43a8aee0472ca3a4f6f8d7dd914ebbf 0 iD8DBQBRDDROywK+sNU5EO8RAh75AJ9uJCGoCWnP0Lv/+XuYs4hvUl+sAgCcD36QgAnuw8IQXrvv684BAXAnHcA=
68 68 7511d4df752e61fe7ae4f3682e0a0008573b0402 0 iD8DBQBRFYaoywK+sNU5EO8RAuErAJoDyhXn+lptU3+AevVdwAIeNFyR2gCdHzPHyWd+JDeWCUR+pSOBi8O2ppM=
69 69 5b7175377babacce80a6c1e12366d8032a6d4340 0 iD8DBQBRMCYgywK+sNU5EO8RAq1/AKCWKlt9ysibyQgYwoxxIOZv5J8rpwCcDSHQaaf1fFZUTnQsOePwcM2Y/Sg=
70 50c922c1b5145dab8baefefb0437d363b6a6c21c 0 iD8DBQBRWnUnywK+sNU5EO8RAuQRAJwM42cJqJPeqJ0jVNdMqKMDqr4dSACeP0cRVGz1gitMuV0x8f3mrZrqc7I=
@@ -80,3 +80,4 b' f5fbe15ca7449f2c9a3cf817c86d0ae68b307214'
80 80 a6088c05e43a8aee0472ca3a4f6f8d7dd914ebbf 2.5
81 81 7511d4df752e61fe7ae4f3682e0a0008573b0402 2.5.1
82 82 5b7175377babacce80a6c1e12366d8032a6d4340 2.5.2
83 50c922c1b5145dab8baefefb0437d363b6a6c21c 2.5.3
@@ -2095,7 +2095,7 b' def debuglabelcomplete(ui, repo, *args):'
2095 2095 def debugobsolete(ui, repo, precursor=None, *successors, **opts):
2096 2096 """create arbitrary obsolete marker
2097 2097
2098 With no arguments it it display the list obsolescence marker."""
2098 With no arguments, displays the list of obsolescence markers."""
2099 2099 def parsenodeid(s):
2100 2100 try:
2101 2101 # We do not use revsingle/revrange functions here to accept
@@ -291,16 +291,16 b' class changectx(object):'
291 291 try:
292 292 return self._manifest[path], self._manifest.flags(path)
293 293 except KeyError:
294 raise error.LookupError(self._node, path,
295 _('not found in manifest'))
294 raise error.ManifestLookupError(self._node, path,
295 _('not found in manifest'))
296 296 if '_manifestdelta' in self.__dict__ or path in self.files():
297 297 if path in self._manifestdelta:
298 298 return (self._manifestdelta[path],
299 299 self._manifestdelta.flags(path))
300 300 node, flag = self._repo.manifest.find(self._changeset[0], path)
301 301 if not node:
302 raise error.LookupError(self._node, path,
303 _('not found in manifest'))
302 raise error.ManifestLookupError(self._node, path,
303 _('not found in manifest'))
304 304
305 305 return node, flag
306 306
@@ -27,6 +27,9 b' class LookupError(RevlogError, KeyError)'
27 27 def __str__(self):
28 28 return RevlogError.__str__(self)
29 29
30 class ManifestLookupError(LookupError):
31 pass
32
30 33 class CommandError(Exception):
31 34 """Exception raised on errors in parsing the command line."""
32 35
@@ -250,7 +250,8 b' class hgweb(object):'
250 250 except (error.LookupError, error.RepoLookupError), err:
251 251 req.respond(HTTP_NOT_FOUND, ctype)
252 252 msg = str(err)
253 if util.safehasattr(err, 'name') and 'manifest' not in msg:
253 if (util.safehasattr(err, 'name') and
254 not isinstance(err, error.ManifestLookupError)):
254 255 msg = 'revision not found: %s' % err.name
255 256 return tmpl('error', error=msg)
256 257 except (error.RepoError, error.RevlogError), inst:
General Comments 0
You need to be logged in to leave comments. Login now