tests/test-default-push.t
changeset 27266 4dccc37b87bd
parent 26820 71d5238f92e9
child 27437 52ae742c8035
equal deleted inserted replaced
27265:47539ea08bdb 27266:4dccc37b87bd
    67 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
    68 
    68 
    69   $ hg --cwd b push doesnotexist
    69   $ hg --cwd b push doesnotexist
    70   abort: repository doesnotexist does not exist!
    70   abort: repository doesnotexist does not exist!
    71   [255]
    71   [255]
       
    72 
       
    73 :pushurl is used when defined
       
    74 
       
    75   $ hg -q clone a pushurlsource
       
    76   $ hg -q clone a pushurldest
       
    77   $ cd pushurlsource
       
    78   $ cat > .hg/hgrc << EOF
       
    79   > [paths]
       
    80   > default = https://example.com/not/relevant
       
    81   > default:pushurl = file://`pwd`/../pushurldest
       
    82   > EOF
       
    83 
       
    84   $ touch pushurl
       
    85   $ hg -q commit -A -m 'add pushurl'
       
    86   $ hg push
       
    87   pushing to file:/*/$TESTTMP/pushurlsource/../pushurldest (glob)
       
    88   searching for changes
       
    89   adding changesets
       
    90   adding manifests
       
    91   adding file changes
       
    92   added 1 changesets with 1 changes to 1 files
       
    93 
       
    94   $ cd ..