Mercurial > hg
comparison tests/test-commit.t @ 45846:96ca817ec192
errors: raise InputError when given non-existent paths etc
Differential Revision: https://phab.mercurial-scm.org/D9328
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 12 Nov 2020 13:22:40 -0800 |
parents | 8d72e29ad1e0 |
children | ac362d5a7893 |
comparison
equal
deleted
inserted
replaced
45845:f96fa4de5055 | 45846:96ca817ec192 |
---|---|
52 $ hg commit -m commit-8 | 52 $ hg commit -m commit-8 |
53 nothing changed (1 missing files, see 'hg status') | 53 nothing changed (1 missing files, see 'hg status') |
54 [1] | 54 [1] |
55 $ hg commit -m commit-8-2 bar | 55 $ hg commit -m commit-8-2 bar |
56 abort: bar: file not found! | 56 abort: bar: file not found! |
57 [255] | 57 [10] |
58 | 58 |
59 $ hg -q revert -a --no-backup | 59 $ hg -q revert -a --no-backup |
60 | 60 |
61 $ mkdir dir | 61 $ mkdir dir |
62 $ echo boo > dir/file | 62 $ echo boo > dir/file |
72 $ echo > dir.file | 72 $ echo > dir.file |
73 $ hg add | 73 $ hg add |
74 adding dir.file | 74 adding dir.file |
75 $ hg commit -m commit-10 dir dir.file | 75 $ hg commit -m commit-10 dir dir.file |
76 abort: dir: no match under directory! | 76 abort: dir: no match under directory! |
77 [255] | 77 [10] |
78 | 78 |
79 $ echo >> dir/file | 79 $ echo >> dir/file |
80 $ mkdir bleh | 80 $ mkdir bleh |
81 $ mkdir dir2 | 81 $ mkdir dir2 |
82 $ cd bleh | 82 $ cd bleh |
83 $ hg commit -m commit-11 . | 83 $ hg commit -m commit-11 . |
84 abort: bleh: no match under directory! | 84 abort: bleh: no match under directory! |
85 [255] | 85 [10] |
86 $ hg commit -m commit-12 ../dir ../dir2 | 86 $ hg commit -m commit-12 ../dir ../dir2 |
87 abort: dir2: no match under directory! | 87 abort: dir2: no match under directory! |
88 [255] | 88 [10] |
89 $ hg -v commit -m commit-13 ../dir | 89 $ hg -v commit -m commit-13 ../dir |
90 committing files: | 90 committing files: |
91 dir/file | 91 dir/file |
92 committing manifest | 92 committing manifest |
93 committing changelog | 93 committing changelog |
94 committed changeset 5:a31d8f87544a | 94 committed changeset 5:a31d8f87544a |
95 $ cd .. | 95 $ cd .. |
96 | 96 |
97 $ hg commit -m commit-14 does-not-exist | 97 $ hg commit -m commit-14 does-not-exist |
98 abort: does-not-exist: * (glob) | 98 abort: does-not-exist: * (glob) |
99 [255] | 99 [10] |
100 | 100 |
101 #if symlink | 101 #if symlink |
102 $ ln -s foo baz | 102 $ ln -s foo baz |
103 $ hg commit -m commit-15 baz | 103 $ hg commit -m commit-15 baz |
104 abort: baz: file not tracked! | 104 abort: baz: file not tracked! |
105 [255] | 105 [10] |
106 $ rm baz | 106 $ rm baz |
107 #endif | 107 #endif |
108 | 108 |
109 $ touch quux | 109 $ touch quux |
110 $ hg commit -m commit-16 quux | 110 $ hg commit -m commit-16 quux |
111 abort: quux: file not tracked! | 111 abort: quux: file not tracked! |
112 [255] | 112 [10] |
113 $ echo >> dir/file | 113 $ echo >> dir/file |
114 $ hg -v commit -m commit-17 dir/file | 114 $ hg -v commit -m commit-17 dir/file |
115 committing files: | 115 committing files: |
116 dir/file | 116 dir/file |
117 committing manifest | 117 committing manifest |