Mercurial > public > mercurial-scm > hg-stable
diff mercurial/changegroup.py @ 39271:0d97530eb535
manifest: rename dir argument and attribute to tree
dir shadows a built-in. We use it throughout the manifest code, which
is unfortunate.
This commit updates just manifestrevlog to be more well behaved.
.. api:: renamed manifest.manifestrevlog.__init__ dir argument to tree
Differential Revision: https://phab.mercurial-scm.org/D4276
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 10 Aug 2018 14:44:50 -0700 |
parents | aad4b46e89bb |
children | 73cf21b2e8a6 |
line wrap: on
line diff
--- a/mercurial/changegroup.py Fri Aug 10 14:40:02 2018 -0700 +++ b/mercurial/changegroup.py Fri Aug 10 14:44:50 2018 -0700 @@ -1068,7 +1068,7 @@ tree, nodes = tmfnodes.popitem() store = dirlog(tree) - if not self._filematcher.visitdir(store._dir[:-1] or '.'): + if not self._filematcher.visitdir(store._tree[:-1] or '.'): prunednodes = [] else: frev, flr = store.rev, store.linkrev