Mercurial > kallithea
changeset 7530:72bda0df1c20
hg: rename `precursors` variable to `predecessors`
This makes it consistent with the method name.
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Mon, 18 Feb 2019 23:41:53 +0100 |
parents | 2bb58ce6adbf |
children | 56e456117510 |
files | kallithea/lib/vcs/backends/hg/changeset.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/vcs/backends/hg/changeset.py Mon Feb 18 23:50:43 2019 +0100 +++ b/kallithea/lib/vcs/backends/hg/changeset.py Mon Feb 18 23:41:53 2019 +0100 @@ -98,13 +98,13 @@ @LazyProperty def predecessors(self): - precursors = set() + predecessors = set() nm = self._ctx._repo.changelog.nodemap for p in self._ctx._repo.obsstore.precursors.get(self._ctx.node(), ()): pr = nm.get(p[0]) if pr is not None: - precursors.add(hex(p[0])[:12]) - return precursors + predecessors.add(hex(p[0])[:12]) + return predecessors @LazyProperty def bookmarks(self):