tests/test-rhg.t
changeset 46557 a25033eb43b5
parent 46555 d8730ff51d5a
child 46630 21d3b40b4c0e
--- a/tests/test-rhg.t	Mon Feb 08 23:08:44 2021 +0100
+++ b/tests/test-rhg.t	Mon Feb 08 23:41:58 2021 +0100
@@ -30,6 +30,18 @@
   $ rhg root
   $TESTTMP/repository
 
+Reading and setting configuration
+  $ echo "[ui]" >> $HGRCPATH
+  $ echo "username = user1" >> $HGRCPATH
+  $ rhg config ui.username
+  user1
+  $ echo "[ui]" >> .hg/hgrc
+  $ echo "username = user2" >> .hg/hgrc
+  $ rhg config ui.username
+  user2
+  $ rhg --config ui.username=user3 config ui.username
+  user3
+
 Unwritable file descriptor
   $ rhg root > /dev/full
   abort: No space left on device (os error 28)