Mercurial > hg > hg-git
changeset 783:e5450a81676e
__init__: work around exchange not yet existing in hg 2.8.x
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 14 Oct 2014 11:32:21 -0400 |
parents | 8bfb1d72b49c |
children | c37842fffb16 |
files | hggit/__init__.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/__init__.py +++ b/hggit/__init__.py @@ -27,7 +27,12 @@ from mercurial import demandimport from mercurial import dirstate from mercurial import discovery -from mercurial import exchange +try: + from mercurial import exchange + exchange.push # existed in first iteration of this file +except ImportError: + # We only *use* the exchange module in hg 3.2+, so this is safe + pass from mercurial import extensions from mercurial import help from mercurial import hg