changeset 43590:95d0532ad171

status: move initialization closer together The default initialization happened long before it needed to happen. Differential Revision: https://phab.mercurial-scm.org/D7145
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 18 Oct 2019 23:18:47 -0700
parents 7f4d58c21aec
children b56c6647f65e
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sat Oct 19 00:15:41 2019 -0700
+++ b/mercurial/commands.py	Fri Oct 18 23:18:47 2019 -0700
@@ -6817,7 +6817,6 @@
         end = b'\0'
     else:
         end = b'\n'
-    copy = {}
     states = b'modified added removed deleted unknown ignored clean'.split()
     show = [k for k in states if opts.get(k)]
     if opts.get(b'all'):
@@ -6856,6 +6855,7 @@
 
     changestates = zip(states, pycompat.iterbytestr(b'MAR!?IC'), stat)
 
+    copy = {}
     if (
         opts.get(b'all')
         or opts.get(b'copies')