Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 10322:d9a2bc2f776b
add options dict to localrepo.store.opener and use it for defversion
author | Vsevolod Solovyov <vsevolod.solovyov@gmail.com> |
---|---|
date | Fri, 05 Feb 2010 19:10:26 +0100 |
parents | 08a0f04b56bd |
children | bc72e21f9dc8 |
comparison
equal
deleted
inserted
replaced
10321:6e721636fede | 10322:d9a2bc2f776b |
---|---|
429 self._chunkcache = (0, '') | 429 self._chunkcache = (0, '') |
430 self.nodemap = {nullid: nullrev} | 430 self.nodemap = {nullid: nullrev} |
431 self.index = [] | 431 self.index = [] |
432 | 432 |
433 v = REVLOG_DEFAULT_VERSION | 433 v = REVLOG_DEFAULT_VERSION |
434 if hasattr(opener, "defversion"): | 434 if hasattr(opener, 'options') and 'defversion' in opener.options: |
435 v = opener.defversion | 435 v = opener.options['defversion'] |
436 if v & REVLOGNG: | 436 if v & REVLOGNG: |
437 v |= REVLOGNGINLINEDATA | 437 v |= REVLOGNGINLINEDATA |
438 | 438 |
439 i = '' | 439 i = '' |
440 try: | 440 try: |