/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/cache.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-03 03:10:29 UTC
  • mfrom: (7312 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190603031029-b34je03bjulxxdwj
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
613
613
 
614
614
    def open(self, transport):
615
615
        try:
616
 
            basepath = transport.local_abspath(".").encode(osutils._fs_enc)
 
616
            basepath = transport.local_abspath(".")
617
617
        except bzr_errors.NotLocalUrl:
618
618
            basepath = get_cache_dir()
619
 
        if not isinstance(basepath, str):
620
 
            raise TypeError(basepath)
621
619
        try:
622
620
            return TdbBzrGitCache(os.path.join(basepath, "idmap.tdb"))
623
621
        except ImportError: