tests/test-mq.t
branchstable
changeset 16290 9518cb55c822
parent 16188 6b52963ced73
child 16291 9952ac7e0968
child 16303 7ee8aa662937
equal deleted inserted replaced
16289:aae219a99a6e 16290:9518cb55c822
  1472   $ hg phase 'all()'
  1472   $ hg phase 'all()'
  1473   0: draft
  1473   0: draft
  1474   1: secret
  1474   1: secret
  1475   2: secret
  1475   2: secret
  1476 
  1476 
       
  1477 Test that qfinish respect phases.new-commit setting
       
  1478 
       
  1479   $ echo '[phases]' >> $HGRCPATH
       
  1480   $ echo 'new-commit=secret' >> $HGRCPATH
       
  1481   $ hg qfinish qbase
       
  1482   patch add-file2 finalized without changeset message
       
  1483   $ hg phase 'all()'
       
  1484   0: draft
       
  1485   1: secret
       
  1486   2: secret
       
  1487 
       
  1488 (restore env for next test)
       
  1489 
       
  1490   $ sed -i.bak -e 's/new-commit=secret//' $HGRCPATH
       
  1491   $ hg qimport -r 1 --name  add-file2
       
  1492 
  1477 Test that qfinish preserve phase when mq.secret=false
  1493 Test that qfinish preserve phase when mq.secret=false
  1478 
  1494 
  1479   $ sed -i.bak -e 's/secret=true/secret=false/' $HGRCPATH
  1495   $ sed -i.bak -e 's/secret=true/secret=false/' $HGRCPATH
  1480   $ hg qfinish qbase
  1496   $ hg qfinish qbase
  1481   patch add-file2 finalized without changeset message
  1497   patch add-file2 finalized without changeset message