Mercurial > public > mercurial-scm > hg-stable
diff mercurial/repository.py @ 39263:43387fd2aa1f
manifest: rename dir to tree to avoid shadowing built-in
And update the argument name in the imanifestlog interface.
Differential Revision: https://phab.mercurial-scm.org/D4268
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Fri, 10 Aug 2018 11:00:06 -0700 |
parents | 3682b49e0213 |
children | 2af6b2d8d1d8 |
line wrap: on
line diff
--- a/mercurial/repository.py Thu Aug 09 19:27:54 2018 -0700 +++ b/mercurial/repository.py Fri Aug 10 11:00:06 2018 -0700 @@ -1000,15 +1000,15 @@ interface. """ - def get(dir, node, verify=True): + def get(tree, node, verify=True): """Retrieve the manifest instance for a given directory and binary node. ``node`` always refers to the node of the root manifest (which will be the only manifest if flat manifests are being used). - If ``dir`` is the empty string, the root manifest is returned. Otherwise - the manifest for the specified directory will be returned (requires - tree manifests). + If ``tree`` is the empty string, the root manifest is returned. + Otherwise the manifest for the specified directory will be returned + (requires tree manifests). If ``verify`` is True, ``LookupError`` is raised if the node is not known.