D4549: localrepo: move check for existing repo into createrepository()
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Wed Sep 12 16:22:28 EDT 2018
pulkit added a comment.
test-init.t and test-mq.t says hi!
--- /storage/pulkit/repo/hgpush/tests/test-init.t
+++ /storage/pulkit/repo/hgpush/tests/test-init.t.err
@@ -99,7 +99,7 @@
test failure
$ hg init local
- abort: repository local already exists!
+ abort: File exists: '$TESTTMP/local/.hg'
[255]
init+push to remote2
@@ -144,14 +144,14 @@
init to existing repo
$ hg init -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/remote1
- abort: repository remote1 already exists!
+ abort: File exists: '$TESTTMP/remote1/.hg'
abort: could not create remote repo!
[255]
clone to existing repo
$ hg clone -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" local ssh://user@dummy/remote1
- abort: repository remote1 already exists!
+ abort: File exists: '$TESTTMP/remote1/.hg'
abort: could not create remote repo!
[255]
ERROR: test-init.t output changed
!
--- /storage/pulkit/repo/hgpush/tests/test-mq.t
+++ /storage/pulkit/repo/hgpush/tests/test-mq.t.err
@@ -154,7 +154,7 @@
guards
$ cat .hg/patches/series
$ hg qinit -c
- abort: repository $TESTTMP/d/.hg/patches already exists!
+ abort: File exists: '$TESTTMP/d/.hg/patches/.hg'
[255]
$ cd ..
ERROR: test-mq.t output changed
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4549
To: martinvonz, #hg-reviewers
Cc: pulkit, mercurial-devel
More information about the Mercurial-devel
mailing list