def open(self, mode='r'): |
""" return an opened file with the given mode. """ |
assert 'w' not in mode and 'a' not in mode, "XXX not implemented for svn cmdline" |
-> assert self.check(file=1) |
if self.rev is None: |
return self._svnpopenauth('svn cat "%s"' % ( |
self._escape(self.strpath), )) |
else: |
return self._svnpopenauth('svn cat -r %s "%s"' % ( |
self.rev, self._escape(self.strpath))) |