# HG changeset patch # User Mads Kiilerich # Date 2020-01-25 21:12:31 # Node ID 744b7e78a2c31744d8a2166c1528cfb1c1b35ef0 # Parent 6db4784809cbc2ac6cf5197965e43b23efd18a4d vcs: access changeset status "struct" members - hg 5.3 will drop indexed access 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 @@ -386,21 +386,21 @@ class MercurialChangeset(BaseChangeset): """ Returns list of added ``FileNode`` objects. """ - return AddedFileNodesGenerator([n for n in self.status[1]], self) + return AddedFileNodesGenerator([n for n in self.status.added], self) @property def changed(self): """ Returns list of modified ``FileNode`` objects. """ - return ChangedFileNodesGenerator([n for n in self.status[0]], self) + return ChangedFileNodesGenerator([n for n in self.status.modified], self) @property def removed(self): """ Returns list of removed ``FileNode`` objects. """ - return RemovedFileNodesGenerator([n for n in self.status[2]], self) + return RemovedFileNodesGenerator([n for n in self.status.removed], self) @LazyProperty def extra(self):