equal
deleted
inserted
replaced
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 [255] |
|
106 $ rm baz |
106 #endif |
107 #endif |
107 |
108 |
108 $ touch quux |
109 $ touch quux |
109 $ hg commit -m commit-16 quux |
110 $ hg commit -m commit-16 quux |
110 abort: quux: file not tracked! |
111 abort: quux: file not tracked! |
127 Using the advanced --extra flag |
128 Using the advanced --extra flag |
128 |
129 |
129 $ echo "[extensions]" >> $HGRCPATH |
130 $ echo "[extensions]" >> $HGRCPATH |
130 $ echo "commitextras=" >> $HGRCPATH |
131 $ echo "commitextras=" >> $HGRCPATH |
131 $ hg status |
132 $ hg status |
132 ? baz |
|
133 ? quux |
133 ? quux |
134 $ hg add baz |
134 $ hg add quux |
|
135 $ hg commit -m "adding internal used extras" --extra amend_source=hash |
|
136 abort: key 'amend_source' is used internally, can't be set manually |
|
137 [255] |
135 $ hg commit -m "adding extras" --extra sourcehash=foo --extra oldhash=bar |
138 $ hg commit -m "adding extras" --extra sourcehash=foo --extra oldhash=bar |
136 $ hg log -r . -T '{extras % "{extra}\n"}' |
139 $ hg log -r . -T '{extras % "{extra}\n"}' |
137 branch=default |
140 branch=default |
138 oldhash=bar |
141 oldhash=bar |
139 sourcehash=foo |
142 sourcehash=foo |
140 $ hg add quux |
|
141 $ hg commit -m "adding internal used extras" --extra amend_source=hash |
|
142 abort: key 'amend_source' is used internally, can't be set manually |
|
143 [255] |
|
144 |
143 |
145 Make sure we do not obscure unknown requires file entries (issue2649) |
144 Make sure we do not obscure unknown requires file entries (issue2649) |
146 |
145 |
147 $ echo foo >> foo |
146 $ echo foo >> foo |
148 $ echo fake >> .hg/requires |
147 $ echo fake >> .hg/requires |