diff --git a/hgext/convert/p4.py b/hgext/convert/p4.py --- a/hgext/convert/p4.py +++ b/hgext/convert/p4.py @@ -28,7 +28,7 @@ class p4_source(converter_source): def __init__(self, ui, path, rev=None): super(p4_source, self).__init__(ui, path, rev=rev) - checktool('p4') + checktool('p4', abort=False) self.p4changes = {} self.heads = {} diff --git a/tests/test-convert b/tests/test-convert --- a/tests/test-convert +++ b/tests/test-convert @@ -44,3 +44,7 @@ echo % test pre and post conversion acti echo 'include b' > filemap hg convert --debug --filemap filemap a partialb | \ grep 'run hg' + +echo % converting empty dir should fail "nicely" +mkdir emptydir +PATH=$BINDIR hg convert emptydir 2>&1 | sed 's,file://.*/emptydir,.../emptydir,g' diff --git a/tests/test-convert.out b/tests/test-convert.out --- a/tests/test-convert.out +++ b/tests/test-convert.out @@ -226,3 +226,16 @@ run hg source pre-conversion action run hg sink pre-conversion action run hg sink post-conversion action run hg source post-conversion action +% converting empty dir should fail nicely +assuming destination emptydir-hg +initializing destination emptydir-hg repository +emptydir does not look like a CVS checkout +emptydir does not look like a Git repo +.../emptydir does not look like a Subversion repo +emptydir is not a local Mercurial repo +emptydir does not look like a darcs repo +cannot find required "mtn" tool +emptydir does not look like a GNU Arch repo +emptydir does not look like a Bazaar repo +cannot find required "p4" tool +abort: emptydir: missing or unsupported repository