tests/test-obsolete-push.t
changeset 2286 a4c5744a7b93
parent 1806 9f42f819267b
child 2320 979a8ea17e1e
child 2525 5adb8bdb935e
equal deleted inserted replaced
2285:080b9384d741 2286:a4c5744a7b93
    42   > EOF
    42   > EOF
    43   $ hg outgoing ../clone --template "$template"
    43   $ hg outgoing ../clone --template "$template"
    44   comparing with ../clone
    44   comparing with ../clone
    45   searching for changes
    45   searching for changes
    46   0:1994f17a630e@default(obsolete/draft) A
    46   0:1994f17a630e@default(obsolete/draft) A
       
    47   $ cd ..
       
    48 
       
    49 Test options to prevent implicite publishing of changesets
       
    50 ----------------------------------------------------------
       
    51 
       
    52 
       
    53   $ hg clone source strict-publish-client --pull
       
    54   requesting all changes
       
    55   adding changesets
       
    56   adding manifests
       
    57   adding file changes
       
    58   added 1 changesets with 1 changes to 1 files
       
    59   1 new obsolescence markers
       
    60   updating to branch default
       
    61   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
    62   $ cd strict-publish-client
       
    63   $ echo c > c
       
    64   $ hg ci -qAm C c
       
    65 
       
    66 abort behavior
       
    67 
       
    68   $ cat >> .hg/hgrc <<eof
       
    69   > [experimental]
       
    70   > auto-publish = abort
       
    71   > eof
       
    72   $ hg push -r .
       
    73   pushing to $TESTTMP/source
       
    74   abort: push would publish 1 changesets
       
    75   (behavior controlled by 'experimental.auto-publish' config)
       
    76   [255]
       
    77   $ hg push
       
    78   pushing to $TESTTMP/source
       
    79   abort: push would publish 1 changesets
       
    80   (behavior controlled by 'experimental.auto-publish' config)
       
    81   [255]
       
    82 
       
    83 warning behavior
       
    84 
       
    85   $ echo 'auto-publish = warn' >> .hg/hgrc
       
    86   $ hg push
       
    87   pushing to $TESTTMP/source
       
    88   1 changesets about to be published
       
    89   searching for changes
       
    90   adding changesets
       
    91   adding manifests
       
    92   adding file changes
       
    93   added 0 changesets with 0 changes to 1 files