##// END OF EJS Templates
scmutil: localize and improve 'not under root' message
Mads Kiilerich -
r18450:4f9a5285 default
parent child Browse files
Show More
@@ -435,7 +435,7 b' def canonpath(root, cwd, myname, auditor'
435 break
435 break
436 name = dirname
436 name = dirname
437
437
438 raise util.Abort('%s not under root' % myname)
438 raise util.Abort(_("%s not under root '%s'") % (myname, root))
439
439
440 def walkrepos(path, followsym=False, seen_dirs=None, recurse=False):
440 def walkrepos(path, followsym=False, seen_dirs=None, recurse=False):
441 '''yield every hg repository under path, always recursively.
441 '''yield every hg repository under path, always recursively.
@@ -87,7 +87,7 b' Implicit -R:'
87 abort: no repository found in '$TESTTMP' (.hg not found)!
87 abort: no repository found in '$TESTTMP' (.hg not found)!
88 [255]
88 [255]
89 $ hg -R b ann a/a
89 $ hg -R b ann a/a
90 abort: a/a not under root
90 abort: a/a not under root '$TESTTMP/b'
91 [255]
91 [255]
92 $ hg log
92 $ hg log
93 abort: no repository found in '$TESTTMP' (.hg not found)!
93 abort: no repository found in '$TESTTMP' (.hg not found)!
@@ -71,7 +71,7 b' hg parents c, single revision'
71
71
72
72
73 $ hg parents -r 2 ../a
73 $ hg parents -r 2 ../a
74 abort: ../a not under root
74 abort: ../a not under root '$TESTTMP/repo'
75 [255]
75 [255]
76
76
77
77
@@ -593,7 +593,7 b' check illegal path components'
593 [255]
593 [255]
594 $ hg status -C
594 $ hg status -C
595 $ hg rename d1/d11/a1 ../foo
595 $ hg rename d1/d11/a1 ../foo
596 abort: ../foo not under root
596 abort: ../foo not under root '$TESTTMP'
597 [255]
597 [255]
598 $ hg status -C
598 $ hg status -C
599
599
@@ -612,7 +612,7 b' check illegal path components'
612 [255]
612 [255]
613 $ hg status -C
613 $ hg status -C
614 $ hg rename d1/d11/a1 ..
614 $ hg rename d1/d11/a1 ..
615 abort: ../a1 not under root (glob)
615 abort: ../a1 not under root '$TESTTMP'
616 [255]
616 [255]
617 $ hg status -C
617 $ hg status -C
618
618
@@ -631,7 +631,7 b' check illegal path components'
631 [255]
631 [255]
632 $ hg status -C
632 $ hg status -C
633 $ (cd d1/d11; hg rename ../../d2/b ../../../foo)
633 $ (cd d1/d11; hg rename ../../d2/b ../../../foo)
634 abort: ../../../foo not under root
634 abort: ../../../foo not under root '$TESTTMP'
635 [255]
635 [255]
636 $ hg status -C
636 $ hg status -C
637
637
@@ -82,7 +82,7 b' try symlink outside repo to file inside'
82 this should fail
82 this should fail
83
83
84 $ hg status ../z && { echo hg mistakenly exited with status 0; exit 1; } || :
84 $ hg status ../z && { echo hg mistakenly exited with status 0; exit 1; } || :
85 abort: ../z not under root
85 abort: ../z not under root '$TESTTMP/x'
86 $ cd ..
86 $ cd ..
87
87
88
88
@@ -181,10 +181,10 b''
181 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
181 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
182 f mammals/skunk mammals/skunk
182 f mammals/skunk mammals/skunk
183 $ hg debugwalk ..
183 $ hg debugwalk ..
184 abort: .. not under root
184 abort: .. not under root '$TESTTMP/t'
185 [255]
185 [255]
186 $ hg debugwalk beans/../..
186 $ hg debugwalk beans/../..
187 abort: beans/../.. not under root
187 abort: beans/../.. not under root '$TESTTMP/t'
188 [255]
188 [255]
189 $ hg debugwalk .hg
189 $ hg debugwalk .hg
190 abort: path contains illegal component: .hg (glob)
190 abort: path contains illegal component: .hg (glob)
@@ -209,7 +209,7 b' Test absolute paths:'
209 f beans/pinto beans/pinto
209 f beans/pinto beans/pinto
210 f beans/turtle beans/turtle
210 f beans/turtle beans/turtle
211 $ hg debugwalk `pwd`/..
211 $ hg debugwalk `pwd`/..
212 abort: $TESTTMP/t/.. not under root
212 abort: $TESTTMP/t/.. not under root '$TESTTMP/t'
213 [255]
213 [255]
214
214
215 Test patterns:
215 Test patterns:
General Comments 0
You need to be logged in to leave comments. Login now