diff tests/test-mq-subrepo.t @ 24645:b39afa36006a

subrepo: precisely identify the missing subrepo spec file It isn't obvious which file is the problem with deep subrepos, so provide the path. Since the parsing is done with a ctx and not a subrepo object, it isn't possible to display a path from the root subrepo. Therefore, the path shown is relative to cwd. There's no test coverage for the first abort, and I couldn't figure out how to trigger it, but it is changed for consistency.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 05 Apr 2015 15:08:55 -0400
parents 1ff35d76421c
children edf907bd8144
line wrap: on
line diff
--- a/tests/test-mq-subrepo.t	Sun Apr 05 12:12:02 2015 -0700
+++ b/tests/test-mq-subrepo.t	Sun Apr 05 15:08:55 2015 -0400
@@ -299,7 +299,7 @@
   +sub = sub
   record this change to '.hgsub'? [Ynesfdaq?] y
   
-  warning: subrepo spec file .hgsub not found
+  warning: subrepo spec file '.hgsub' not found
   abort: uncommitted changes in subrepository 'sub'
   [255]
   % update substate when adding .hgsub w/clean updated subrepo
@@ -313,7 +313,7 @@
   +sub = sub
   record this change to '.hgsub'? [Ynesfdaq?] y
   
-  warning: subrepo spec file .hgsub not found
+  warning: subrepo spec file '.hgsub' not found
   path sub
    source   sub
    revision b2fdb12cd82b021c3b7053d67802e77b6eeaee31