Mercurial > hgsubversion
diff hgsubversion/compathacks.py @ 1572:51e105c7f0c6
compathacks: deal with removed aliases in mercurial.util
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 27 May 2018 00:29:38 -0400 |
parents | 8410a978c650 |
children | 7bb6562feb85 |
line wrap: on
line diff
--- a/hgsubversion/compathacks.py +++ b/hgsubversion/compathacks.py @@ -152,3 +152,15 @@ class _funcregistrarbase(object): """Execute exra setup for registered function, if needed """ pass + +try: + binary = util.binary +except AttributeError: + from mercurial.utils import stringutil + binary = stringutil.binary + +try: + datestr = util.datestr +except AttributeError: + from mercurial.utils import dateutil + datestr = dateutil.datestr