diff tests/test_externals.py @ 784:f214fb3f92cd

svnexternals: handle new overwrite argument of subrepo.get() The argument was introduced in hg-1.7.4-c19b9282d3a7.
author Patrick Mezard <pmezard@gmail.com>
date Wed, 02 Feb 2011 14:25:58 +0100
parents f025d00bfc4a
children 40ddf8213fa2
line wrap: on
line diff
--- a/tests/test_externals.py
+++ b/tests/test_externals.py
@@ -250,6 +250,10 @@ 2 deps/project2
                   ['subdir2/deps/project1'])
         checkdeps(ui, repo, 4, ['subdir/deps/project1'], ['deps/project2'])
 
+        # Test update --clean, used to crash
+        repo.wwrite('subdir/deps/project1/a', 'foobar', '')
+        commands.update(ui, repo, node='4', clean=True)
+
 class TestPushExternals(test_util.TestBase):
     def test_push_externals(self, stupid=False):
         test_util.load_fixture_and_fetch('pushexternals.svndump',