projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f2378b
)
Fixed broken path in libbe.rcs.RCS._rcs_get_file_contents(binary=True).
author
W. Trevor King
<wking@drexel.edu>
Sat, 18 Jul 2009 14:29:11 +0000
(10:29 -0400)
committer
W. Trevor King
<wking@drexel.edu>
Sat, 18 Jul 2009 14:29:11 +0000
(10:29 -0400)
I'd forgotten to prefix the directory root, so calling
be show --only-raw-body COMMIT-ID
would fail if you weren't executing it in the repository root.
libbe/rcs.py
patch
|
blob
|
history
diff --git
a/libbe/rcs.py
b/libbe/rcs.py
index fd87f4277ef751db2cbe8212a6fa3f9e2f632c89..1024249255ec9ed52a7a87cfc79d45b2466d101d 100644
(file)
--- a/
libbe/rcs.py
+++ b/
libbe/rcs.py
@@
-186,7
+186,7
@@
class RCS(object):
if binary == False:
f = codecs.open(os.path.join(self.rootdir, path), "r", self.encoding)
else:
- f = open(
path
, "rb")
+ f = open(
os.path.join(self.rootdir, path)
, "rb")
contents = f.read()
f.close()
return contents