Mercurial > hg
comparison tests/test-largefiles.t @ 18553:b6b9475c563a stable
largefiles: don't crash when trying to find default dest for url without path
b32e55e6c3c7 introduced a crash when cloning a url without path - where
util.url().path would be None.
This None will now be handled as ''. clone will thus abort with 'repository /
not found' as before.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 04 Feb 2013 23:26:44 +0100 |
parents | ef60083b5536 |
children | 1516d5624a29 2dc7f63181b9 |
comparison
equal
deleted
inserted
replaced
18552:e8efcc8ff5c0 | 18553:b6b9475c563a |
---|---|
829 parent: -1:000000000000 (no revision checked out) | 829 parent: -1:000000000000 (no revision checked out) |
830 branch: default | 830 branch: default |
831 commit: (clean) | 831 commit: (clean) |
832 update: 8 new changesets (update) | 832 update: 8 new changesets (update) |
833 | 833 |
834 Show computed destination directory: | |
835 | |
834 $ mkdir xyz | 836 $ mkdir xyz |
835 $ cd xyz | 837 $ cd xyz |
836 $ hg clone ../a | 838 $ hg clone ../a |
837 destination directory: a | 839 destination directory: a |
838 updating to branch default | 840 updating to branch default |
839 getting changed largefiles | 841 getting changed largefiles |
840 3 largefiles updated, 0 removed | 842 3 largefiles updated, 0 removed |
841 5 files updated, 0 files merged, 0 files removed, 0 files unresolved | 843 5 files updated, 0 files merged, 0 files removed, 0 files unresolved |
842 $ cd .. | 844 $ cd .. |
845 | |
846 Clone URL without path: | |
847 | |
848 $ hg clone file:// | |
849 abort: repository / not found! | |
850 [255] | |
843 | 851 |
844 Ensure base clone command argument validation | 852 Ensure base clone command argument validation |
845 | 853 |
846 $ hg clone -U -u 0 a a-clone-failure | 854 $ hg clone -U -u 0 a a-clone-failure |
847 abort: cannot specify both --noupdate and --updaterev | 855 abort: cannot specify both --noupdate and --updaterev |