mercurial/metadata.py
changeset 45728 232c88dd89e3
parent 45669 e53778ad64bf
child 45734 53c265a6fc83
--- a/mercurial/metadata.py	Wed Oct 14 17:51:56 2020 +0200
+++ b/mercurial/metadata.py	Tue Oct 13 03:23:17 2020 +0200
@@ -75,6 +75,16 @@
             and self.copied_from_p2 == other.copied_from_p2
         )
 
+    @property
+    def has_copies_info(self):
+        return bool(
+            self.removed
+            or self.merged
+            or self.salvaged
+            or self.copied_from_p1
+            or self.copied_from_p2
+        )
+
     @util.propertycache
     def added(self):
         """files actively added in the changeset