diff tests/test-subrepo.t @ 18965:0062508b1900

ui: add support for fully printing chained exception stacks in ui.traceback() Currently, only SubrepoAbort has a cause chained to it.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 09 Feb 2013 14:15:34 -0500
parents 27e8dfc2c338
children a6542a670ece
line wrap: on
line diff
--- a/tests/test-subrepo.t	Wed Feb 06 22:54:09 2013 -0500
+++ b/tests/test-subrepo.t	Sat Feb 09 14:15:34 2013 -0500
@@ -771,6 +771,11 @@
   abort: default path for subrepository not found (in subrepo sub/repo) (glob)
   [255]
 
+Ensure a full traceback, not just the SubrepoAbort part
+
+  $ hg -R issue1852b update --traceback 2>&1 | grep 'raise util\.Abort'
+      raise util.Abort(_("default path for subrepository not found"))
+
 Pull -u now doesn't help
 
   $ hg -R issue1852b pull -u issue1852a