aboutsummaryrefslogtreecommitdiffstats
path: root/libbe
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-19 09:43:37 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-19 09:43:37 -0500
commit449d80de4bb035542498623133b9cd347e7cfe13 (patch)
tree78f82e45c07eb266ed99eff9674b3d58d3537d28 /libbe
parent4ad9a6d7b17db9abe7d4c11477df1df7c6eac5e5 (diff)
downloadbugseverywhere-449d80de4bb035542498623133b9cd347e7cfe13.tar.gz
Use relative paths *._vcs_* methods.
Diffstat (limited to 'libbe')
-rw-r--r--libbe/storage/vcs/base.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py
index 15460b0..83be287 100644
--- a/libbe/storage/vcs/base.py
+++ b/libbe/storage/vcs/base.py
@@ -773,8 +773,10 @@ os.listdir(self.get_path("bugs")):
listdir = os.listdir
else:
id_to_path = lambda id : self._vcs_path(id, revision)
- isdir = lambda path : self._vcs_isdir(path, revision)
- listdir = lambda path : self._vcs_listdir(path, revision)
+ isdir = lambda path : self._vcs_isdir(
+ self._u_rel_path(path), revision)
+ listdir = lambda path : self._vcs_listdir(
+ self._u_rel_path(path), revision)
if id==None:
path = self.be_dir
else:
@@ -1046,7 +1048,8 @@ os.listdir(self.get_path("bugs")):
if revision == None: # don't require connection
return libbe.util.encoding.get_file_contents(
path, decode=True).rstrip('\n')
- contents = self._vcs_get_file_contents(path, revision=revision)
+ relpath = self._u_rel_path(path)
+ contents = self._vcs_get_file_contents(relpath, revision=revision)
if type(contents) != types.UnicodeType:
contents = unicode(contents, self.encoding)
return contents.strip()