From 580a67ea19a2e24cd70ed8f3346942af50c831a1 Mon Sep 17 00:00:00 2001 From: chipx86 Date: Tue, 2 Jun 2009 08:40:29 +0000 Subject: Mark a file as read/write instead of write-only in PerforceClient._write_file. Fixes bug #1143. --- scripts/post-review | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/post-review b/scripts/post-review index e024cdd..4822ad9 100755 --- a/scripts/post-review +++ b/scripts/post-review @@ -1702,7 +1702,7 @@ class PerforceClient(SCMClient): """ debug('Writing "%s" to "%s"' % (depot_path, tmpfile)) execute(["p4", "print", "-o", tmpfile, "-q", depot_path]) - os.chmod(tmpfile, stat.S_IWRITE) + os.chmod(tmpfile, stat.S_IREAD | stat.S_IWRITE) def _depot_to_local(self, depot_path): """ -- cgit v1.2.3