##// END OF EJS Templates
errors: raise InputError when given non-existent paths etc...
Martin von Zweigbergk -
r46450:96ca817e default
parent child Browse files
Show More
@@ -459,7 +459,7 b' def dorecord('
459 459 )
460 460
461 461 def fail(f, msg):
462 raise error.Abort(b'%s: %s' % (f, msg))
462 raise error.InputError(b'%s: %s' % (f, msg))
463 463
464 464 force = opts.get(b'force')
465 465 if not force:
@@ -2845,7 +2845,7 b' class localrepository(object):'
2845 2845 extra = {}
2846 2846
2847 2847 def fail(f, msg):
2848 raise error.Abort(b'%s: %s' % (f, msg))
2848 raise error.InputError(b'%s: %s' % (f, msg))
2849 2849
2850 2850 if not match:
2851 2851 match = matchmod.always()
@@ -61,7 +61,7 b' Abort for untracked'
61 61 $ touch untracked
62 62 $ hg commit -i -m should-fail empty-rw untracked
63 63 abort: untracked: file not tracked!
64 [255]
64 [10]
65 65 $ rm untracked
66 66
67 67 Record empty file
@@ -54,7 +54,7 b' commit added file that has been deleted'
54 54 [1]
55 55 $ hg commit -m commit-8-2 bar
56 56 abort: bar: file not found!
57 [255]
57 [10]
58 58
59 59 $ hg -q revert -a --no-backup
60 60
@@ -74,7 +74,7 b' commit added file that has been deleted'
74 74 adding dir.file
75 75 $ hg commit -m commit-10 dir dir.file
76 76 abort: dir: no match under directory!
77 [255]
77 [10]
78 78
79 79 $ echo >> dir/file
80 80 $ mkdir bleh
@@ -82,10 +82,10 b' commit added file that has been deleted'
82 82 $ cd bleh
83 83 $ hg commit -m commit-11 .
84 84 abort: bleh: no match under directory!
85 [255]
85 [10]
86 86 $ hg commit -m commit-12 ../dir ../dir2
87 87 abort: dir2: no match under directory!
88 [255]
88 [10]
89 89 $ hg -v commit -m commit-13 ../dir
90 90 committing files:
91 91 dir/file
@@ -96,20 +96,20 b' commit added file that has been deleted'
96 96
97 97 $ hg commit -m commit-14 does-not-exist
98 98 abort: does-not-exist: * (glob)
99 [255]
99 [10]
100 100
101 101 #if symlink
102 102 $ ln -s foo baz
103 103 $ hg commit -m commit-15 baz
104 104 abort: baz: file not tracked!
105 [255]
105 [10]
106 106 $ rm baz
107 107 #endif
108 108
109 109 $ touch quux
110 110 $ hg commit -m commit-16 quux
111 111 abort: quux: file not tracked!
112 [255]
112 [10]
113 113 $ echo >> dir/file
114 114 $ hg -v commit -m commit-17 dir/file
115 115 committing files:
@@ -412,7 +412,7 b' Committing directories containing only l'
412 412 $ hg revert --quiet z
413 413 $ hg commit -m "Empty subdir" z
414 414 abort: z: no match under directory!
415 [255]
415 [10]
416 416 $ rm -rf z
417 417 $ hg ci -m "standin" .hglf
418 418 abort: file ".hglf" is a largefile standin
@@ -198,7 +198,7 b' commit and update back'
198 198 $ ln -s nothing dangling
199 199 $ hg commit -m 'commit symlink without adding' dangling
200 200 abort: dangling: file not tracked!
201 [255]
201 [10]
202 202 $ hg add dangling
203 203 $ hg commit -m 'add symlink'
204 204
General Comments 0
You need to be logged in to leave comments. Login now