summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchipx86 <chipx86@5efc13c4-1f27-0410-8691-ff2d1f55687e>2009-06-02 08:40:29 +0000
committerchipx86 <chipx86@5efc13c4-1f27-0410-8691-ff2d1f55687e>2009-06-02 08:40:29 +0000
commit580a67ea19a2e24cd70ed8f3346942af50c831a1 (patch)
tree7d2e2d1238bde4ada9ef2e9378ce93a643de6e2e
parentd2133965cecce9b4703ef15f6533fb89d3e2e859 (diff)
Mark a file as read/write instead of write-only in PerforceClient._write_file.
Fixes bug #1143.
-rwxr-xr-xscripts/post-review2
1 files changed, 1 insertions, 1 deletions
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):
"""