Mercurial > hgsubversion
view hgsubversion/compathacks.py @ 1196:878372849175
maps: use meta.caseignoreauthors intead of accessing ui directly
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Mon, 24 Mar 2014 11:20:46 -0500 |
parents | 9ec3c2e89c94 |
children | b1a6edc78bfb |
line wrap: on
line source
"""Functions to work around API changes.""" 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) return pickle.load(f)