[PATCH 5 of 6] introduce fncache repository layout

Adrian Buehlmann adrian at cadifra.com
Thu Aug 14 07:24:51 CDT 2008


On 14.08.2008 13:21, Adrian Buehlmann wrote:
> On 31.07.2008 11:47, Adrian Buehlmann wrote:
>> # HG changeset patch
>> # User Adrian Buehlmann <adrian at cadifra.com>
>> # Date 1217492034 -7200
>> # Node ID 31913bc2a85fd2c9d8c9731483c14ff0acd7db4d
>> # Parent  3299dc704f6d8dbaabeab2ac345705bfaba86f9f
>> introduce fncache repository layout
> 
> This is now most likely incompatible with current main and crew tip
> (0642d9d7ec80) due to recent refactorings around store.py.

Biggest new (reintroduced) problem is that it's no longer the store itself
which creates the file writing opener, which invalidates the strategy to create
a special opener which logs newly created files (as I've done in
http://selenic.com/pipermail/mercurial-devel/2008-July/007338.html):

'''
# HG changeset patch
# User Matt Mackall <mpm at selenic.com>
# Date 1218676722 18000
# Node ID 40690d614ce603bba356b22c42f0491edda11c51
# Parent a6bb949301054fe4f060e817f80d81c8870271a1
store: take opener as an argument

--- a/mercurial/localrepo.py	Wed Aug 13 20:18:42 2008 -0500
+++ b/mercurial/localrepo.py	Wed Aug 13 20:18:42 2008 -0500
@@ -60,7 +60,7 @@
                 if inst.errno != errno.ENOENT:
                     raise

-        self.store = store.store(requirements, self.path)
+        self.store = store.store(requirements, self.path, util.opener)
'''

I have currently no idea how to work around that.

See also somewhat related
http://www.selenic.com/mercurial/bts/issue1260


More information about the Mercurial-devel mailing list