mercurial/revlog.py
branchstable
changeset 41303 c953c2a94d68
parent 41301 13c23396c7fe
child 41350 ab0d762d89ef
equal deleted inserted replaced
41301:13c23396c7fe 41303:c953c2a94d68
   394             newversionflags = REVLOGV2 | FLAG_INLINE_DATA
   394             newversionflags = REVLOGV2 | FLAG_INLINE_DATA
   395         elif 'revlogv1' in opts:
   395         elif 'revlogv1' in opts:
   396             newversionflags = REVLOGV1 | FLAG_INLINE_DATA
   396             newversionflags = REVLOGV1 | FLAG_INLINE_DATA
   397             if 'generaldelta' in opts:
   397             if 'generaldelta' in opts:
   398                 newversionflags |= FLAG_GENERALDELTA
   398                 newversionflags |= FLAG_GENERALDELTA
       
   399         elif getattr(self.opener, 'options', None) is not None:
       
   400             # If options provided but no 'revlog*' found, the repository
       
   401             # would have no 'requires' file in it, which means we have to
       
   402             # stick to the old format.
       
   403             newversionflags = REVLOGV0
   399         else:
   404         else:
   400             newversionflags = REVLOG_DEFAULT_VERSION
   405             newversionflags = REVLOG_DEFAULT_VERSION
   401 
   406 
   402         if 'chunkcachesize' in opts:
   407         if 'chunkcachesize' in opts:
   403             self._chunkcachesize = opts['chunkcachesize']
   408             self._chunkcachesize = opts['chunkcachesize']