tests/test-pull.t
branchstable
changeset 16107 a3dcc59054ca
parent 16039 093b75c7b44b
child 16913 f2719b387380
equal deleted inserted replaced
16106:d75aa756149b 16107:a3dcc59054ca
    46 
    46 
    47   $ hg pull
    47   $ hg pull
    48   pulling from http://foo@localhost:$HGPORT/
    48   pulling from http://foo@localhost:$HGPORT/
    49   searching for changes
    49   searching for changes
    50   no changes found
    50   no changes found
    51   [1]
       
    52 
    51 
    53   $ hg rollback --dry-run --verbose
    52   $ hg rollback --dry-run --verbose
    54   repository tip rolled back to revision -1 (undo pull: http://foo:***@localhost:$HGPORT/)
    53   repository tip rolled back to revision -1 (undo pull: http://foo:***@localhost:$HGPORT/)
    55 
    54 
    56 Issue622: hg init && hg pull -u URL doesn't checkout default branch
    55 Issue622: hg init && hg pull -u URL doesn't checkout default branch
    76   $ hg pull -q file://../test
    75   $ hg pull -q file://../test
    77   abort: file:// URLs can only refer to localhost
    76   abort: file:// URLs can only refer to localhost
    78   [255]
    77   [255]
    79 
    78 
    80   $ hg pull -q file:../test
    79   $ hg pull -q file:../test
    81   [1]
       
    82 
    80 
    83 It's tricky to make file:// URLs working on every platform with
    81 It's tricky to make file:// URLs working on every platform with
    84 regular shell commands.
    82 regular shell commands.
    85 
    83 
    86   $ URL=`python -c "import os; print 'file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"`
    84   $ URL=`python -c "import os; print 'file://foobar' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"`
    88   abort: file:// URLs can only refer to localhost
    86   abort: file:// URLs can only refer to localhost
    89   [255]
    87   [255]
    90 
    88 
    91   $ URL=`python -c "import os; print 'file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"`
    89   $ URL=`python -c "import os; print 'file://localhost' + ('/' + os.getcwd().replace(os.sep, '/')).replace('//', '/') + '/../test'"`
    92   $ hg pull -q "$URL"
    90   $ hg pull -q "$URL"
    93   [1]