Rev 6106: (jameinel) Bug #835545, in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Sun Aug 28 11:13:20 UTC 2011
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 6106 [merge]
revision-id: pqm at pqm.ubuntu.com-20110828111318-tzo1k47rlx1xzxz9
parent: pqm at pqm.ubuntu.com-20110826140300-pxnc7ydxn5htfl6d
parent: jelmer at samba.org-20110827165943-666j7r5oyozdt3d9
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Sun 2011-08-28 11:13:18 +0000
message:
(jameinel) Bug #835545,
lazy_import modules rather than objects to allow pydoc to work. (Jelmer
Vernooij)
modified:
bzrlib/branch.py branch.py-20050309040759-e4baf4e0d046576e
=== modified file 'bzrlib/branch.py'
--- a/bzrlib/branch.py 2011-08-19 22:34:02 +0000
+++ b/bzrlib/branch.py 2011-08-27 16:59:43 +0000
@@ -19,7 +19,7 @@
from bzrlib.lazy_import import lazy_import
lazy_import(globals(), """
-from itertools import chain
+import itertools
from bzrlib import (
bzrdir,
cache_utf8,
@@ -35,15 +35,11 @@
repository,
revision as _mod_revision,
rio,
+ tag as _mod_tag,
transport,
ui,
urlutils,
)
-from bzrlib.config import BranchConfig, TransportConfig
-from bzrlib.tag import (
- BasicTags,
- DisabledTags,
- )
""")
from bzrlib import (
@@ -216,7 +212,7 @@
:return: A bzrlib.config.BranchConfig.
"""
- return BranchConfig(self)
+ return _mod_config.BranchConfig(self)
def _get_config(self):
"""Get the concrete config for just the config in this branch.
@@ -514,7 +510,7 @@
# The decision to include the start or not
# depends on the stop_rule if a stop is provided
# so pop this node back into the iterator
- rev_iter = chain(iter([node]), rev_iter)
+ rev_iter = itertools.chain(iter([node]), rev_iter)
break
if stop_revision_id is None:
# Yield everything
@@ -1679,7 +1675,7 @@
Note that it is normal for branch to be a RemoteBranch when using tags
on a RemoteBranch.
"""
- return DisabledTags(branch)
+ return _mod_tag.DisabledTags(branch)
def network_name(self):
"""A simple byte string uniquely identifying this format for RPC calls.
@@ -2125,7 +2121,7 @@
def make_tags(self, branch):
"""See bzrlib.branch.BranchFormat.make_tags()."""
- return BasicTags(branch)
+ return _mod_tag.BasicTags(branch)
def supports_set_append_revisions_only(self):
return True
@@ -2156,7 +2152,7 @@
def make_tags(self, branch):
"""See bzrlib.branch.BranchFormat.make_tags()."""
- return BasicTags(branch)
+ return _mod_tag.BasicTags(branch)
def supports_set_append_revisions_only(self):
return True
@@ -2203,7 +2199,7 @@
def make_tags(self, branch):
"""See bzrlib.branch.BranchFormat.make_tags()."""
- return BasicTags(branch)
+ return _mod_tag.BasicTags(branch)
supports_reference_locations = False
@@ -2421,7 +2417,7 @@
base = property(_get_base, doc="The URL for the root of this branch.")
def _get_config(self):
- return TransportConfig(self._transport, 'branch.conf')
+ return _mod_config.TransportConfig(self._transport, 'branch.conf')
def is_locked(self):
return self.control_files.is_locked()
More information about the bazaar-commits
mailing list