tests/test-subrepo-relative-path.t
changeset 38170 dfb888aae17a
parent 37845 b4b7427b5786
child 39547 41ac8ea1bdd7
equal deleted inserted replaced
38169:fc72beec2a1a 38170:dfb888aae17a
    54   adding file changes
    54   adding file changes
    55   added 1 changesets with 1 changes to 1 files
    55   added 1 changesets with 1 changes to 1 files
    56   new changesets 863c1745b441
    56   new changesets 863c1745b441
    57   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
    57   3 files updated, 0 files merged, 0 files removed, 0 files unresolved
    58 
    58 
       
    59 Ensure that subrepos pay attention to default:pushurl
       
    60 
       
    61   $ cat > cloned/.hg/hgrc << EOF
       
    62   > [paths]
       
    63   > default:pushurl = http://localhost:$HGPORT/main
       
    64   > EOF
       
    65 
       
    66   $ hg -R cloned out -S --config paths.default=bogus://invalid
       
    67   comparing with http://localhost:$HGPORT/main
       
    68   searching for changes
       
    69   no changes found
       
    70   comparing with http://localhost:$HGPORT/sub
       
    71   searching for changes
       
    72   no changes found
       
    73   [1]
       
    74 
       
    75   $ hg -R cloned push --config paths.default=bogus://invalid
       
    76   pushing to http://localhost:$HGPORT/main
       
    77   no changes made to subrepo sub since last push to http://localhost:$HGPORT/sub
       
    78   searching for changes
       
    79   no changes found
       
    80   abort: HTTP Error 403: ssl required
       
    81   [255]
       
    82 
    59 Checking cloned repo ids
    83 Checking cloned repo ids
    60 
    84 
    61   $ hg id -R cloned
    85   $ hg id -R cloned
    62   fdfeeb3e979e tip
    86   fdfeeb3e979e tip
    63   $ hg id -R cloned/sub
    87   $ hg id -R cloned/sub