changeset 43782:79750d781928

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 13 Nov 2019 20:33:22 +0100
parents b65bd4b61d78
children bbd7172bc3df
files mercurial/copies.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/copies.py	Mon Nov 25 12:44:04 2019 -0800
+++ b/mercurial/copies.py	Wed Nov 13 20:33:22 2019 +0100
@@ -231,7 +231,7 @@
             else:
                 p1copies = {}
                 p2copies = {}
-                removed = ()
+                removed = []
             return p1, p2, p1copies, p2copies, removed
 
     else: