copies: return consistent type from revinfo
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 13 Nov 2019 20:33:22 +0100
changeset 43782 79750d781928
parent 43781 b65bd4b61d78
child 43783 bbd7172bc3df
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.
mercurial/copies.py
--- 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: