# HG changeset patch # User Pierre-Yves David # Date 2019-11-13 19:33:22 # Node ID 7655276a4441c5afb73ab938eb863b84f2d3ede0 # Parent aef7b91dba51b5f3fad8cf675e0b51b35d0fd5bb copies: return consistent type from revinfo The return is expected to be a list, so we should return a list. This make the use of this function from type-checked language (eg: rust) much simpler. diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -231,7 +231,7 @@ def _revinfogetter(repo): else: p1copies = {} p2copies = {} - removed = () + removed = [] return p1, p2, p1copies, p2copies, removed else: