/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: Vincent Ladeuil
  • Date: 2019-03-06 14:03:19 UTC
  • mfrom: (7290.1.15 work)
  • mto: This revision was merged to the branch mainline in revision 7295.
  • Revision ID: v.ladeuil+brz@free.fr-20190306140319-zgjegynpjv3vv0jg
Merge 3.0 into 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: