##// END OF EJS Templates
subrepo: improve lookup error messages
Wagner Bruna -
r12503:b4711585 default
parent child Browse files
Show More
@@ -331,7 +331,7 b' class hgsubrepo(abstractsubrepo):'
331 ctx2 = self._repo[rev2]
331 ctx2 = self._repo[rev2]
332 return self._repo.status(ctx1, ctx2, **opts)
332 return self._repo.status(ctx1, ctx2, **opts)
333 except error.RepoLookupError, inst:
333 except error.RepoLookupError, inst:
334 self._repo.ui.warn(_("warning: %s in %s\n")
334 self._repo.ui.warn(_('warning: error "%s" in subrepository "%s"\n')
335 % (inst, relpath(self)))
335 % (inst, relpath(self)))
336 return [], [], [], [], [], [], []
336 return [], [], [], [], [], [], []
337
337
@@ -347,7 +347,7 b' class hgsubrepo(abstractsubrepo):'
347 prefix=os.path.join(prefix, self._path),
347 prefix=os.path.join(prefix, self._path),
348 listsubrepos=True, **opts)
348 listsubrepos=True, **opts)
349 except error.RepoLookupError, inst:
349 except error.RepoLookupError, inst:
350 self._repo.ui.warn(_("warning: %s in %s\n")
350 self._repo.ui.warn(_('warning: error "%s" in subrepository "%s"\n')
351 % (inst, relpath(self)))
351 % (inst, relpath(self)))
352
352
353 def archive(self, archiver, prefix):
353 def archive(self, archiver, prefix):
@@ -350,4 +350,4 b' Test missing subrepo:'
350
350
351 $ rm -r foo
351 $ rm -r foo
352 $ hg status
352 $ hg status
353 warning: unknown revision '65903cebad86f1a84bd4f1134f62fa7dcb7a1c98' in foo
353 warning: error "unknown revision '65903cebad86f1a84bd4f1134f62fa7dcb7a1c98'" in subrepository "foo"
General Comments 0
You need to be logged in to leave comments. Login now