# HG changeset patch # User Manuel Jacob # Date 2019-02-18 23:41:53 # Node ID 72bda0df1c2082b3a621d31357bc3eb12ad140ce # Parent 2bb58ce6adbf2a0222d163d125e5c04b6fdd9c4b hg: rename `precursors` variable to `predecessors` This makes it consistent with the method name. diff --git a/kallithea/lib/vcs/backends/hg/changeset.py b/kallithea/lib/vcs/backends/hg/changeset.py --- a/kallithea/lib/vcs/backends/hg/changeset.py +++ b/kallithea/lib/vcs/backends/hg/changeset.py @@ -98,13 +98,13 @@ class MercurialChangeset(BaseChangeset): @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):