--- 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: