Mercurial > hg
comparison tests/test-commit.t @ 33576:a41e0f1c9b69 stable
test-commit: stabilize for filesystems without symlink support
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 18 Jul 2017 20:34:22 -0400 |
parents | a6af8560494e |
children | 27fbca750b4d |
comparison
equal
deleted
inserted
replaced
33575:5b286cfe4fb0 | 33576:a41e0f1c9b69 |
---|---|
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 |