diff -r e632a2429982 -r 49c583ca48c4 mercurial/manifest.py --- a/mercurial/manifest.py Sun May 10 06:48:08 2015 -0700 +++ b/mercurial/manifest.py Sun Apr 12 23:51:06 2015 -0700 @@ -815,6 +815,8 @@ indexfile = "00manifest.i" if dir: assert self._treeondisk + if not dir.endswith('/'): + dir = dir + '/' indexfile = "meta/" + dir + "00manifest.i" revlog.revlog.__init__(self, opener, indexfile) self._dir = dir