Mercurial > hgsubversion
changeset 1138:6059c26a179f
compathacks: pep8
author | Sean Farley <sean.michael.farley@gmail.com> |
---|---|
date | Sat, 15 Feb 2014 01:53:55 -0600 |
parents | ad4cb902593e |
children | d1bd52202c6d |
files | hgsubversion/compathacks.py |
diffstat | 1 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/compathacks.py +++ b/hgsubversion/compathacks.py @@ -1,11 +1,12 @@ """Functions to work around API changes inside Mercurial.""" + def branchset(repo): - """Return the set of branches present in a 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()) + Works around branchtags() vanishing between 2.8 and 2.9. + """ + try: + return set(repo.branchmap()) + except AttributeError: + return set(repo.branchtags())