tests/test-default-push.t
changeset 27437 52ae742c8035
parent 27266 4dccc37b87bd
child 27570 44f717c87903
equal deleted inserted replaced
27436:912255f8f087 27437:52ae742c8035
    73 :pushurl is used when defined
    73 :pushurl is used when defined
    74 
    74 
    75   $ hg -q clone a pushurlsource
    75   $ hg -q clone a pushurlsource
    76   $ hg -q clone a pushurldest
    76   $ hg -q clone a pushurldest
    77   $ cd pushurlsource
    77   $ cd pushurlsource
       
    78 
       
    79 Windows needs a leading slash to make a URL that passes all of the checks
       
    80   $ WD=`pwd`
       
    81 #if windows
       
    82   $ WD="/$WD"
       
    83 #endif
    78   $ cat > .hg/hgrc << EOF
    84   $ cat > .hg/hgrc << EOF
    79   > [paths]
    85   > [paths]
    80   > default = https://example.com/not/relevant
    86   > default = https://example.com/not/relevant
    81   > default:pushurl = file://`pwd`/../pushurldest
    87   > default:pushurl = file://$WD/../pushurldest
    82   > EOF
    88   > EOF
    83 
    89 
    84   $ touch pushurl
    90   $ touch pushurl
    85   $ hg -q commit -A -m 'add pushurl'
    91   $ hg -q commit -A -m 'add pushurl'
    86   $ hg push
    92   $ hg push