Mercurial > hg
comparison tests/test-clone.t @ 45847:d68618954ade
errors: use InputError for some errors on `hg clone`
Differential Revision: https://phab.mercurial-scm.org/D9329
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 12 Nov 2020 15:28:06 -0800 |
parents | ebee234d952a |
children | 95c4cca641f6 |
comparison
equal
deleted
inserted
replaced
45846:96ca817ec192 | 45847:d68618954ade |
---|---|
71 | 71 |
72 Invalid dest '' must abort: | 72 Invalid dest '' must abort: |
73 | 73 |
74 $ hg clone . '' | 74 $ hg clone . '' |
75 abort: empty destination path is not valid | 75 abort: empty destination path is not valid |
76 [255] | 76 [10] |
77 | 77 |
78 No update, with debug option: | 78 No update, with debug option: |
79 | 79 |
80 #if hardlink | 80 #if hardlink |
81 $ hg --debug clone -U . ../c --config progress.debug=true | 81 $ hg --debug clone -U . ../c --config progress.debug=true |
187 | 187 |
188 Invalid dest '' with --pull must abort (issue2528): | 188 Invalid dest '' with --pull must abort (issue2528): |
189 | 189 |
190 $ hg clone --pull a '' | 190 $ hg clone --pull a '' |
191 abort: empty destination path is not valid | 191 abort: empty destination path is not valid |
192 [255] | 192 [10] |
193 | 193 |
194 Clone to '.': | 194 Clone to '.': |
195 | 195 |
196 $ mkdir h | 196 $ mkdir h |
197 $ cd h | 197 $ cd h |
674 | 674 |
675 $ hg init q | 675 $ hg init q |
676 $ hg clone q | 676 $ hg clone q |
677 destination directory: q | 677 destination directory: q |
678 abort: destination 'q' is not empty | 678 abort: destination 'q' is not empty |
679 [255] | 679 [10] |
680 | 680 |
681 destination directory not empty | 681 destination directory not empty |
682 | 682 |
683 $ mkdir a | 683 $ mkdir a |
684 $ echo stuff > a/a | 684 $ echo stuff > a/a |
685 $ hg clone q a | 685 $ hg clone q a |
686 abort: destination 'a' is not empty | 686 abort: destination 'a' is not empty |
687 [255] | 687 [10] |
688 | 688 |
689 | 689 |
690 #if unix-permissions no-root | 690 #if unix-permissions no-root |
691 | 691 |
692 leave existing directory in place after clone failure | 692 leave existing directory in place after clone failure |