~jelmer/loggerhead/breezy-compat

« back to all changes in this revision

Viewing changes to loggerhead/__init__.py

  • Committer: Colin Watson
  • Date: 2019-09-19 08:10:36 UTC
  • mfrom: (491.2.62 breezy)
  • Revision ID: cjwatson@canonical.com-20190919081036-q1symc2h2iedtlh3
[r=cjwatson] Switch loggerhead over to using the Breezy rather than Bazaar APIs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
import pkg_resources
24
24
 
25
 
__version__ = '1.18.2'  # Keep in sync with ../info.py.
 
25
__version__ = '1.20.0'  # Keep in sync with ../__init__.py.
26
26
__revision__ = None
27
 
required_bzrlib = (1, 17)
 
27
required_breezy = (3, 0)
28
28
 
29
29
pkg_resources.get_distribution('Paste>=1.6')
30
30
try:
32
32
except pkg_resources.DistributionNotFound:
33
33
    # No paste.deploy is OK, but an old paste.deploy is bad.
34
34
    pass
35
 
 
36
 
try:
37
 
    from bzrlib.branch import Branch
38
 
    branch = Branch.open('./');
39
 
 
40
 
    __revision__ = branch.revno()
41
 
    
42
 
except:
43
 
    pass