Mercurial > hgsubversion
comparison tests/test_externals.py @ 776:f025d00bfc4a
svnexternals: add 'ignore' mode to avoid converting externals
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 12 Dec 2010 15:32:25 +0100 |
parents | bc5c176b63eb |
children | f214fb3f92cd |
comparison
equal
deleted
inserted
replaced
775:7597ea43a37e | 776:f025d00bfc4a |
---|---|
212 """, repo[6]['.hgsubstate'].data()) | 212 """, repo[6]['.hgsubstate'].data()) |
213 | 213 |
214 def test_hgsub_stupid(self): | 214 def test_hgsub_stupid(self): |
215 self.test_hgsub(True) | 215 self.test_hgsub(True) |
216 | 216 |
217 def test_ignore(self): | |
218 repo = self._load_fixture_and_fetch('externals.svndump', | |
219 externals='ignore') | |
220 for rev in repo: | |
221 ctx = repo[rev] | |
222 self.assertTrue('.hgsvnexternals' not in ctx) | |
223 self.assertTrue('.hgsub' not in ctx) | |
224 self.assertTrue('.hgsubstate' not in ctx) | |
225 | |
217 def test_updatehgsub(self): | 226 def test_updatehgsub(self): |
218 def checkdeps(ui, repo, rev, deps, nodeps): | 227 def checkdeps(ui, repo, rev, deps, nodeps): |
219 commands.update(ui, repo, node=str(rev)) | 228 commands.update(ui, repo, node=str(rev)) |
220 for d in deps: | 229 for d in deps: |
221 p = os.path.join(repo.root, d) | 230 p = os.path.join(repo.root, d) |