/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/plugins/git/transportgit.py

  • Committer: Jelmer Vernooij
  • Date: 2018-06-18 02:13:57 UTC
  • mto: (6973.12.2 python3-k)
  • mto: This revision was merged to the branch mainline in revision 7004.
  • Revision ID: jelmer@jelmer.uk-20180618021357-xz802zqfmrf7zv1z
More test fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        return "%s(%r)" % (self.__class__.__name__, self.transport)
100
100
 
101
101
    def _ensure_dir_exists(self, path):
102
 
        for n in range(path.count("/")):
103
 
            dirname = "/".join(path.split("/")[:n+1])
 
102
        for n in range(path.count(b"/")):
 
103
            dirname = b"/".join(path.split(b"/")[:n+1])
104
104
            try:
105
105
                self.transport.mkdir(dirname)
106
106
            except FileExists:
354
354
        else:
355
355
            transport = self.transport
356
356
        self._ensure_dir_exists(name)
357
 
        lockname = name + ".lock"
 
357
        lockname = name + b".lock"
358
358
        try:
359
359
            local_path = self.transport.local_abspath(name)
360
360
        except NotLocalUrl: