Mercurial > hgsubversion
diff hgsubversion/compathacks.py @ 1599:7bb6562feb85
compathacks: drop branchset() which is compat code for hg<2.9
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 27 Nov 2018 14:08:11 +0300 |
parents | 51e105c7f0c6 |
children | 5d8603f080c5 |
line wrap: on
line diff
--- a/hgsubversion/compathacks.py +++ b/hgsubversion/compathacks.py @@ -5,16 +5,6 @@ import sys from mercurial import util -def branchset(repo): - """Return the set of branches present in a repo. - - Works around branchtags() vanishing between 2.8 and 2.9. - """ - try: - return set(repo.branchmap()) - except AttributeError: - return set(repo.branchtags()) - def pickle_load(f): import cPickle as pickle f.seek(0)