diff -r a2f0f61a6988 -r 31a5973fcf96 mercurial/revlog.py --- a/mercurial/revlog.py Mon May 16 11:52:28 2011 +0200 +++ b/mercurial/revlog.py Mon May 16 12:44:34 2011 +0200 @@ -227,12 +227,11 @@ v = REVLOG_DEFAULT_VERSION if hasattr(opener, 'options'): - if 'defversion' in opener.options: - v = opener.options['defversion'] - if v & REVLOGNG: - v |= REVLOGNGINLINEDATA - if v & REVLOGNG and 'generaldelta' in opener.options: - v |= REVLOGGENERALDELTA + if 'revlogv1' in opener.options: + if 'generaldelta' in opener.options: + v |= REVLOGGENERALDELTA + else: + v = 0 i = '' try: