tests/test-config.t
branchstable
changeset 19087 7d82ad4b3727
parent 19086 8fb8dce3f9b6
child 22275 d9a8017dce10
child 22316 816be4ca4ae2
equal deleted inserted replaced
19086:8fb8dce3f9b6 19087:7d82ad4b3727
     9 
     9 
    10   $ hg showconfig Section
    10   $ hg showconfig Section
    11   Section.KeY=Case Sensitive
    11   Section.KeY=Case Sensitive
    12   Section.key=lower case
    12   Section.key=lower case
    13 
    13 
       
    14 Test "%unset"
       
    15 
       
    16   $ cat >> $HGRCPATH <<EOF
       
    17   > [unsettest]
       
    18   > local-hgrcpath = should be unset (HGRCPATH)
       
    19   > %unset local-hgrcpath
       
    20   > 
       
    21   > global = should be unset (HGRCPATH)
       
    22   > 
       
    23   > both = should be unset (HGRCPATH)
       
    24   > 
       
    25   > set-after-unset = should be unset (HGRCPATH)
       
    26   > EOF
       
    27 
       
    28   $ cat >> .hg/hgrc <<EOF
       
    29   > [unsettest]
       
    30   > local-hgrc = should be unset (.hg/hgrc)
       
    31   > %unset local-hgrc
       
    32   > 
       
    33   > %unset global
       
    34   > 
       
    35   > both = should be unset (.hg/hgrc)
       
    36   > %unset both
       
    37   > 
       
    38   > set-after-unset = should be unset (.hg/hgrc)
       
    39   > %unset set-after-unset
       
    40   > set-after-unset = should be set (.hg/hgrc)
       
    41   > EOF
       
    42 
       
    43   $ hg showconfig unsettest
       
    44   unsettest.set-after-unset=should be set (.hg/hgrc)