From e8f8975d1d76e18ba1e8da1f095568c54c9ea6b0 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 18 Jul 2009 10:29:11 -0400 Subject: Fixed broken path in libbe.rcs.RCS._rcs_get_file_contents(binary=True). 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbe/rcs.py b/libbe/rcs.py index fd87f42..1024249 100644 --- 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 -- cgit From 0baf6034dba2178f4141d3fe87d0d41061946299 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 18 Jul 2009 10:41:11 -0400 Subject: Import sys in becommands/new.py. Required for reading the bug summary string from stdin. --- becommands/new.py | 1 + 1 file changed, 1 insertion(+) diff --git a/becommands/new.py b/becommands/new.py index f94335b..5325ccc 100644 --- a/becommands/new.py +++ b/becommands/new.py @@ -16,6 +16,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. """Create a new bug""" from libbe import cmdutil, bugdir +import sys __desc__ = __doc__ def execute(args, test=False): -- cgit