Skip to content
Snippets Groups Projects
Commit 3de074bf authored by Georges Racinet's avatar Georges Racinet
Browse files

compat: fixed access to status attributes

as of Mercurial c5548b0b6847, status is no more a tuple. Its attributes
must be accessed explicitely.

These attributes have been available since 3.2 (introduced in cb4449921a1d),
so that we don't need to introduce a conditional such as `isinstance(tuple)`.

Technically, these are slots, so that performance-wise, such prefetching in
locals should not matter, but they make for the smallest changeset.
parent 1aa74ab1
No related branches found
No related tags found
1 merge request!2Fixing compat with Mercurial default branch (future 5.3)
......@@ -192,7 +192,12 @@
# The only reliable way to get the full set of changes is by looking at
# the full manifest. And, the easy way to compare two manifests is
# localrepo.status().
modified, added, removed = self._hg.status(self._ctx, newctx)[0:3]
status = self._hg.status(self._ctx, newctx)
modified, added, removed = (
status.modified,
status.added,
status.removed,
)
# We track which directories/trees have modified in this update and we
# only export those.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment