Skip to content
Snippets Groups Projects
Commit e5450a81 authored by durin42's avatar durin42
Browse files

__init__: work around exchange not yet existing in hg 2.8.x

parent 8bfb1d72
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment