##// END OF EJS Templates
revlog: fix resolution of revlog version 0...
Yuya Nishihara -
r41355:c953c2a9 stable
parent child Browse files
Show More
@@ -396,6 +396,11 b' class revlog(object):'
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
@@ -717,6 +717,9 b' Test clone from the repository in (emula'
717 $ hg -R src commit -m '#0'
717 $ hg -R src commit -m '#0'
718 $ hg -R src log -q
718 $ hg -R src log -q
719 0:e1bab28bca43
719 0:e1bab28bca43
720 $ hg -R src debugrevlog -c | egrep 'format|flags'
721 format : 0
722 flags : (none)
720 $ hg clone -U -q src dst
723 $ hg clone -U -q src dst
721 $ hg -R dst log -q
724 $ hg -R dst log -q
722 0:e1bab28bca43
725 0:e1bab28bca43
General Comments 0
You need to be logged in to leave comments. Login now