comparison tests/test-rhg.t @ 46505:a25033eb43b5

rhg: add limited support for the `config` sub-command Only with one argument and no flag. This is mostly for testing. Differential Revision: https://phab.mercurial-scm.org/D9972
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 08 Feb 2021 23:41:58 +0100
parents d8730ff51d5a
children 21d3b40b4c0e
comparison
equal deleted inserted replaced
46504:2e5dd18d6dc3 46505:a25033eb43b5
27 27
28 $ hg init repository 28 $ hg init repository
29 $ cd repository 29 $ cd repository
30 $ rhg root 30 $ rhg root
31 $TESTTMP/repository 31 $TESTTMP/repository
32
33 Reading and setting configuration
34 $ echo "[ui]" >> $HGRCPATH
35 $ echo "username = user1" >> $HGRCPATH
36 $ rhg config ui.username
37 user1
38 $ echo "[ui]" >> .hg/hgrc
39 $ echo "username = user2" >> .hg/hgrc
40 $ rhg config ui.username
41 user2
42 $ rhg --config ui.username=user3 config ui.username
43 user3
32 44
33 Unwritable file descriptor 45 Unwritable file descriptor
34 $ rhg root > /dev/full 46 $ rhg root > /dev/full
35 abort: No space left on device (os error 28) 47 abort: No space left on device (os error 28)
36 [255] 48 [255]