[PATCH 11 of 11 V1] store: implement new fncache2 requirement

Adrian Buehlmann adrian at cadifra.com
Sun Sep 30 16:56:48 CDT 2012


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1349033428 -7200
# Node ID 6a4d27efb2127f622b3a42037ae5340999c60109
# Parent  efbc439c7f2cb97ff04ada6edd78dce186a72118
store: implement new fncache2 requirement

not yet used

diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -494,6 +494,8 @@
 
 class fncachestore(basicstore):
     def __init__(self, path, vfstype, version):
+        if version == 2:
+            encode = _hybridencode2
         if version == 1:
             encode = _dothybridencode
         else:
@@ -544,7 +546,9 @@
 
 def store(requirements, path, vfstype):
     if 'store' in requirements:
-        if 'fncache' in requirements:
+        if 'fncache2' in requirements:
+            return fncachestore(path, vfstype, version=2)
+        elif 'fncache' in requirements:
             if 'dotencode' in requirements:
                 version = 1
             else:


More information about the Mercurial-devel mailing list