tests/test-pushvars.t
changeset 35393 4441705b7111
parent 33885 800bb35d891e
child 36157 2405ca783672
equal deleted inserted replaced
35392:5feb782c7a95 35393:4441705b7111
    22 Test pushing vars to repo with pushvars.server not set
    22 Test pushing vars to repo with pushvars.server not set
    23 
    23 
    24   $ echo b > a
    24   $ echo b > a
    25   $ hg commit -Aqm a
    25   $ hg commit -Aqm a
    26   $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
    26   $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
    27   pushing to $TESTTMP/repo (glob)
    27   pushing to $TESTTMP/repo
    28   searching for changes
    28   searching for changes
    29   adding changesets
    29   adding changesets
    30   adding manifests
    30   adding manifests
    31   adding file changes
    31   adding file changes
    32   added 1 changesets with 1 changes to 1 files
    32   added 1 changesets with 1 changes to 1 files
    36   $ echo [push] >> $HGRCPATH
    36   $ echo [push] >> $HGRCPATH
    37   $ echo "pushvars.server = true" >> $HGRCPATH
    37   $ echo "pushvars.server = true" >> $HGRCPATH
    38   $ echo b >> a
    38   $ echo b >> a
    39   $ hg commit -Aqm a
    39   $ hg commit -Aqm a
    40   $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
    40   $ hg push --pushvars "DEBUG=1" --pushvars "BYPASS_REVIEW=true"
    41   pushing to $TESTTMP/repo (glob)
    41   pushing to $TESTTMP/repo
    42   searching for changes
    42   searching for changes
    43   adding changesets
    43   adding changesets
    44   adding manifests
    44   adding manifests
    45   adding file changes
    45   adding file changes
    46   added 1 changesets with 1 changes to 1 files
    46   added 1 changesets with 1 changes to 1 files
    50 Test pushing var with empty right-hand side
    50 Test pushing var with empty right-hand side
    51 
    51 
    52   $ echo b >> a
    52   $ echo b >> a
    53   $ hg commit -Aqm a
    53   $ hg commit -Aqm a
    54   $ hg push --pushvars "DEBUG="
    54   $ hg push --pushvars "DEBUG="
    55   pushing to $TESTTMP/repo (glob)
    55   pushing to $TESTTMP/repo
    56   searching for changes
    56   searching for changes
    57   adding changesets
    57   adding changesets
    58   adding manifests
    58   adding manifests
    59   adding file changes
    59   adding file changes
    60   added 1 changesets with 1 changes to 1 files
    60   added 1 changesets with 1 changes to 1 files
    63 Test pushing bad vars
    63 Test pushing bad vars
    64 
    64 
    65   $ echo b >> a
    65   $ echo b >> a
    66   $ hg commit -Aqm b
    66   $ hg commit -Aqm b
    67   $ hg push --pushvars "DEBUG"
    67   $ hg push --pushvars "DEBUG"
    68   pushing to $TESTTMP/repo (glob)
    68   pushing to $TESTTMP/repo
    69   searching for changes
    69   searching for changes
    70   abort: unable to parse variable 'DEBUG', should follow 'KEY=VALUE' or 'KEY=' format
    70   abort: unable to parse variable 'DEBUG', should follow 'KEY=VALUE' or 'KEY=' format
    71   [255]
    71   [255]