tests/test-default-push.t
branchstable
changeset 26820 71d5238f92e9
parent 26189 663fbc336e22
child 27266 4dccc37b87bd
child 27555 ca8ada499529
equal deleted inserted replaced
26819:ba7eeeac9603 26820:71d5238f92e9
    44   adding changesets
    44   adding changesets
    45   adding manifests
    45   adding manifests
    46   adding file changes
    46   adding file changes
    47   added 1 changesets with 1 changes to 1 files
    47   added 1 changesets with 1 changes to 1 files
    48 
    48 
       
    49 Push should push to 'default-push' when 'default' is not set
       
    50 
       
    51   $ hg -q clone a push-default-only
       
    52   $ cd push-default-only
       
    53   $ rm .hg/hgrc
       
    54 
       
    55   $ touch foo
       
    56   $ hg -q commit -A -m 'add foo'
       
    57   $ hg --config paths.default-push=../a push
       
    58   pushing to $TESTTMP/a (glob)
       
    59   searching for changes
       
    60   adding changesets
       
    61   adding manifests
       
    62   adding file changes
       
    63   added 1 changesets with 1 changes to 1 files
       
    64 
       
    65   $ cd ..
       
    66 
    49 Pushing to a path that isn't defined should not fall back to default
    67 Pushing to a path that isn't defined should not fall back to default
    50 
    68 
    51   $ hg --cwd b push doesnotexist
    69   $ hg --cwd b push doesnotexist
    52   abort: repository doesnotexist does not exist!
    70   abort: repository doesnotexist does not exist!
    53   [255]
    71   [255]