/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/git/dir.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-11-16 11:19:09 UTC
  • mfrom: (7143.11.6 unused-imports)
  • Revision ID: breezy.the.bot@gmail.com-20181116111909-ekbys9z1ujp66gh2
Remove some unused imports.

Merged from https://code.launchpad.net/~jelmer/brz/unused-imports/+merge/358595

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    errors as brz_errors,
25
25
    trace,
26
26
    osutils,
27
 
    repository as _mod_repository,
28
 
    revision as _mod_revision,
29
27
    urlutils,
30
28
    )
31
29
from ..sixish import (
44
42
    format_registry,
45
43
    RepositoryAcquisitionPolicy,
46
44
    )
47
 
from .object_store import (
48
 
    get_object_store,
49
 
    )
50
45
 
51
46
from .push import (
52
47
    GitPushResult,
449
444
                filename.startswith('.git\\'))
450
445
 
451
446
    def _get_symref(self, ref):
452
 
        from dulwich.repo import SYMREF
453
447
        ref_chain, unused_sha = self._git.refs.follow(ref)
454
448
        if len(ref_chain) == 1:
455
449
            return None
586
580
 
587
581
    def open_workingtree(self, recommend_upgrade=True, unsupported=False):
588
582
        if not self._git.bare:
589
 
            from dulwich.errors import NoIndexPresent
590
583
            repo = self.find_repository()
591
584
            from .workingtree import GitWorkingTree
592
585
            branch = self.open_branch(ref=b'HEAD', nascent_ok=True)