comparison tests/test_tags.py @ 930:5bacb9c63e3e

Fix more peer breakage with old hg versions
author Patrick Mezard <patrick@mezard.eu>
date Mon, 10 Sep 2012 22:42:49 +0200
parents 7e9d805a0e1f
children d741f536f23a
comparison
equal deleted inserted replaced
929:8417be758047 930:5bacb9c63e3e
110 self.repo.ui.status( 110 self.repo.ui.status(
111 "Note: this test failing may be because of a rebuildmeta failure.\n" 111 "Note: this test failing may be because of a rebuildmeta failure.\n"
112 "You should check that before assuming issues with this test.\n") 112 "You should check that before assuming issues with this test.\n")
113 wc2_path = self.wc_path + '2' 113 wc2_path = self.wc_path + '2'
114 src, dest = test_util.hgclone(repo.ui, self.wc_path, wc2_path, update=False) 114 src, dest = test_util.hgclone(repo.ui, self.wc_path, wc2_path, update=False)
115 dest = getattr(dest, 'local', lambda: dest)() 115 dest = test_util.getlocalpeer(dest)
116 svncommands.rebuildmeta(repo.ui, 116 svncommands.rebuildmeta(repo.ui,
117 dest, 117 dest,
118 args=[test_util.fileurl(repo_path), ]) 118 args=[test_util.fileurl(repo_path), ])
119 commands.pull(self.repo.ui, self.repo, stupid=stupid) 119 commands.pull(self.repo.ui, self.repo, stupid=stupid)
120 dtags, srctags = dest.tags(), self.repo.tags() 120 dtags, srctags = dest.tags(), self.repo.tags()