comparison tests/test_hooks.py @ 1106:5cb6c95e0283 stable

Merge default and stable so I can do stable releases again.
author Augie Fackler <raf@durin42.com>
date Tue, 11 Feb 2014 12:48:49 -0500
parents 20850abfb91a
children 4f1461428334
comparison
equal deleted inserted replaced
1020:b5b1fce26f1f 1106:5cb6c95e0283
9 def setUp(self): 9 def setUp(self):
10 super(TestHooks, self).setUp() 10 super(TestHooks, self).setUp()
11 11
12 def _loadupdate(self, fixture_name, *args, **kwargs): 12 def _loadupdate(self, fixture_name, *args, **kwargs):
13 kwargs = kwargs.copy() 13 kwargs = kwargs.copy()
14 kwargs.update(stupid=False, noupdate=False) 14 kwargs.update(noupdate=False)
15 repo, repo_path = self.load_and_fetch(fixture_name, *args, **kwargs) 15 repo, repo_path = self.load_and_fetch(fixture_name, *args, **kwargs)
16 return repo, repo_path 16 return repo, repo_path
17 17
18 def test_updatemetahook(self): 18 def test_updatemetahook(self):
19 repo, repo_path = self._loadupdate('single_rev.svndump') 19 repo, repo_path = self._loadupdate('single_rev.svndump')
41 41
42 # Pull and make sure our updatemeta function gets called 42 # Pull and make sure our updatemeta function gets called
43 commands.pull(newrepo.ui, newrepo) 43 commands.pull(newrepo.ui, newrepo)
44 hgsubversion.svncommands.updatemeta = oldupdatemeta 44 hgsubversion.svncommands.updatemeta = oldupdatemeta
45 self.assertTrue(self.called) 45 self.assertTrue(self.called)
46
47 def suite():
48 return unittest.findTestCases(sys.modules[__name__])