changeset 11268:f73baa069113

Merge with stable
author Martin Geisler <mg@aragost.com>
date Wed, 02 Jun 2010 14:40:31 +0200
parents 2b440bb8a66b (current diff) d3ebb1a0bc49 (diff)
children 5f01fd602542
files contrib/shrink-revlog.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/shrink-revlog.py	Wed May 19 18:06:35 2010 +0200
+++ b/contrib/shrink-revlog.py	Wed Jun 02 14:40:31 2010 +0200
@@ -254,9 +254,14 @@
             # copy files
             util.os_link(indexfn, oldindexfn)
             ignoremissing(util.os_link)(datafn, olddatafn)
+
+            # mkstemp() creates files only readable by the owner
+            os.chmod(tmpindexfn, os.stat(indexfn).st_mode)
+
             # rename
             util.rename(tmpindexfn, indexfn)
             try:
+                os.chmod(tmpdatafn, os.stat(datafn).st_mode)
                 util.rename(tmpdatafn, datafn)
             except OSError, inst:
                 if inst.errno != errno.ENOENT: