Mercurial > hgsubversion
comparison tests/test_externals.py @ 832:e9af7eba88db
globally: clean up whitespace around operators and commas to conform with PEP8
Mostly autoformatted by Eclipse. A few manual corrections were
performed where Eclipse's autoformatter did something non-idiomatic.
author | Yonggang Luo <luoyonggang@gmail.com> |
---|---|
date | Wed, 12 Oct 2011 15:35:25 +0800 |
parents | 6f0b0a47938c |
children | 312b37bc5e20 |
comparison
equal
deleted
inserted
replaced
831:be5bbb2f2d68 | 832:e9af7eba88db |
---|---|
8 from mercurial import subrepo | 8 from mercurial import subrepo |
9 # require svnsubrepo and hg >= 1.7.1 | 9 # require svnsubrepo and hg >= 1.7.1 |
10 subrepo.svnsubrepo | 10 subrepo.svnsubrepo |
11 hgutil.checknlink | 11 hgutil.checknlink |
12 except (ImportError, AttributeError), e: | 12 except (ImportError, AttributeError), e: |
13 print >>sys.stderr, 'test_externals: skipping .hgsub tests' | 13 print >> sys.stderr, 'test_externals: skipping .hgsub tests' |
14 subrepo = None | 14 subrepo = None |
15 | 15 |
16 from hgsubversion import svnexternals | 16 from hgsubversion import svnexternals |
17 | 17 |
18 class TestFetchExternals(test_util.TestBase): | 18 class TestFetchExternals(test_util.TestBase): |
356 self.commitchanges(changes) | 356 self.commitchanges(changes) |
357 self.pushrevisions(stupid) | 357 self.pushrevisions(stupid) |
358 self.assertchanges(changes, self.repo['tip']) | 358 self.assertchanges(changes, self.repo['tip']) |
359 | 359 |
360 # Check .hgsub and .hgsubstate were not pushed | 360 # Check .hgsub and .hgsubstate were not pushed |
361 self.assertEqual(['dir', 'subdir1', 'subdir1/a','subdir2', | 361 self.assertEqual(['dir', 'subdir1', 'subdir1/a', 'subdir2', |
362 'subdir2/a'], self.svnls('trunk')) | 362 'subdir2/a'], self.svnls('trunk')) |
363 | 363 |
364 # Remove all references from one directory, add a new one | 364 # Remove all references from one directory, add a new one |
365 # to the other (test multiline entries) | 365 # to the other (test multiline entries) |
366 changes = [ | 366 changes = [ |