on clone failure, only remove directories we created

Steve Borho steve at borho.org
Thu Apr 2 12:01:40 CDT 2009


2009/4/2 Martin Geisler <mg at daimi.au.dk>:
> Steve Borho <steve at borho.org> writes:
>
>>  mercurial/hg.py              |   6 +++++-
>>  tests/test-clone-failure     |  14 ++++++++++++++
>>  tests/test-clone-failure.out |   4 ++++
>>  3 files changed, 23 insertions(+), 1 deletions(-)
>>
>>
>> # HG changeset patch
>> # User Steve Borho <steve at borho.org>
>> # Date 1238552513 18000
>> # Node ID 76dddb1da6b97de4514df5d9d6cc5669193ac15c
>> # Parent  026bcd12a0adba249c2e1e1b43ccd4a8207c2e57
>> on clone failure, only remove directories we created
>
> Thanks, I've pushed this to crew (39566bb99a9c) with a slightly changed
> test where I used "test -d" instead of "ls" since the error messages
> From "ls" are not standardized.

Thanks, I wasn't sure if that was safe.  I also had to redirect the
error message
since it included the test path.

--
Steve



More information about the Mercurial-devel mailing list