comparison mercurial/manifest.py @ 25119:49c583ca48c4

treemanifest: add --dir option to debug{revlog,data,index} It should be possible to debug the submanifest revlogs without having to know where they are stored (in .hg/store/meta/), so let's add a --dir option for this purpose.
author Martin von Zweigbergk <martinvonz@google.com>
date Sun, 12 Apr 2015 23:51:06 -0700
parents b5052fc73300
children 6eb4bdad198f
comparison
equal deleted inserted replaced
25118:e632a2429982 25119:49c583ca48c4
813 self._treeondisk = usetreemanifest 813 self._treeondisk = usetreemanifest
814 self._usemanifestv2 = usemanifestv2 814 self._usemanifestv2 = usemanifestv2
815 indexfile = "00manifest.i" 815 indexfile = "00manifest.i"
816 if dir: 816 if dir:
817 assert self._treeondisk 817 assert self._treeondisk
818 if not dir.endswith('/'):
819 dir = dir + '/'
818 indexfile = "meta/" + dir + "00manifest.i" 820 indexfile = "meta/" + dir + "00manifest.i"
819 revlog.revlog.__init__(self, opener, indexfile) 821 revlog.revlog.__init__(self, opener, indexfile)
820 self._dir = dir 822 self._dir = dir
821 823
822 def _newmanifest(self, data=''): 824 def _newmanifest(self, data=''):