~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Aaron Bentley
  • Date: 2006-03-31 02:39:09 UTC
  • mfrom: (1558.7.10 bzr.ab.integration)
  • mto: This revision was merged to the branch mainline in revision 1634.
  • Revision ID: aaron.bentley@utoronto.ca-20060331023909-957277c1233c6aff
Merge from bzr.ab.integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
            fp = open(self.abspath(relpath), 'ab')
139
139
        except (IOError, OSError),e:
140
140
            self._translate_error(e, relpath)
 
141
        # win32 workaround (tell on an unwritten file returns 0)
 
142
        fp.seek(0, 2)
141
143
        result = fp.tell()
142
144
        self._pump(f, fp)
143
145
        return result
225
227
        path = self.abspath(relpath)
226
228
        try:
227
229
            return [urllib.quote(entry) for entry in os.listdir(path)]
228
 
        except (IOError, OSError),e:
 
230
        except (IOError, OSError), e:
229
231
            self._translate_error(e, path)
230
232
 
231
233
    def stat(self, relpath):