equal
deleted
inserted
replaced
63 $ hg -R file://localhost/`pwd`/a/ identify |
63 $ hg -R file://localhost/`pwd`/a/ identify |
64 8580ff50825a tip |
64 8580ff50825a tip |
65 |
65 |
66 -R with path aliases: |
66 -R with path aliases: |
67 |
67 |
|
68 TODO: add rhg support for path aliases |
|
69 #if no-rhg |
68 $ cd c |
70 $ cd c |
69 $ hg -R default identify |
71 $ hg -R default identify |
70 8580ff50825a tip |
72 8580ff50825a tip |
71 $ hg -R relative identify |
73 $ hg -R relative identify |
72 8580ff50825a tip |
74 8580ff50825a tip |
73 $ echo '[paths]' >> $HGRCPATH |
75 $ echo '[paths]' >> $HGRCPATH |
74 $ echo 'relativetohome = a' >> $HGRCPATH |
76 $ echo 'relativetohome = a' >> $HGRCPATH |
75 $ HOME=`pwd`/../ hg -R relativetohome identify |
77 $ HOME=`pwd`/../ hg -R relativetohome identify |
76 8580ff50825a tip |
78 8580ff50825a tip |
77 $ cd .. |
79 $ cd .. |
|
80 #endif |
78 |
81 |
79 #if no-outer-repo |
82 #if no-outer-repo |
80 |
83 |
81 Implicit -R: |
84 Implicit -R: |
82 |
85 |
213 |
216 |
214 Testing --config: |
217 Testing --config: |
215 |
218 |
216 $ hg --cwd c --config paths.quuxfoo=bar paths | grep quuxfoo > /dev/null && echo quuxfoo |
219 $ hg --cwd c --config paths.quuxfoo=bar paths | grep quuxfoo > /dev/null && echo quuxfoo |
217 quuxfoo |
220 quuxfoo |
|
221 TODO: add rhg support for detailed exit codes |
|
222 #if no-rhg |
218 $ hg --cwd c --config '' tip -q |
223 $ hg --cwd c --config '' tip -q |
219 abort: malformed --config option: '' (use --config section.name=value) |
224 abort: malformed --config option: '' (use --config section.name=value) |
220 [10] |
225 [10] |
221 $ hg --cwd c --config a.b tip -q |
226 $ hg --cwd c --config a.b tip -q |
222 abort: malformed --config option: 'a.b' (use --config section.name=value) |
227 abort: malformed --config option: 'a.b' (use --config section.name=value) |
228 abort: malformed --config option: 'a.=' (use --config section.name=value) |
233 abort: malformed --config option: 'a.=' (use --config section.name=value) |
229 [10] |
234 [10] |
230 $ hg --cwd c --config .b= tip -q |
235 $ hg --cwd c --config .b= tip -q |
231 abort: malformed --config option: '.b=' (use --config section.name=value) |
236 abort: malformed --config option: '.b=' (use --config section.name=value) |
232 [10] |
237 [10] |
|
238 #endif |
233 |
239 |
234 Testing --debug: |
240 Testing --debug: |
235 |
241 |
236 $ hg --cwd c log --debug |
242 $ hg --cwd c log --debug |
237 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a |
243 changeset: 1:b6c483daf2907ce5825c0bb50f5716226281cc1a |