comparison tests/test_hooks.py @ 1417:4f1461428334 stable

test_hooks: cope with localrepo.parents() going away
author Augie Fackler <raf@durin42.com>
date Mon, 23 May 2016 17:15:58 -0400
parents 20850abfb91a
children
comparison
equal deleted inserted replaced
1409:fc80c25bc94b 1417:4f1461428334
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')
20 state = repo.parents() 20 state = repo[None].parents()
21 self.add_svn_rev(repo_path, {'trunk/alpha': 'Changed'}) 21 self.add_svn_rev(repo_path, {'trunk/alpha': 'Changed'})
22 commands.pull(self.repo.ui, self.repo) 22 commands.pull(self.repo.ui, self.repo)
23 23
24 # Clone to a new repository and add a hook 24 # Clone to a new repository and add a hook
25 new_wc_path = "%s-2" % self.wc_path 25 new_wc_path = "%s-2" % self.wc_path