Patchwork D7145: status: move initialization closer together

login
register
mail settings
Submitter phabricator
Date Nov. 11, 2019, 12:35 p.m.
Message ID <33f21417bf96ee8efcf4342a15252139@localhost.localdomain>
Download mbox | patch
Permalink /patch/43117/
State Not Applicable
Headers show

Comments

phabricator - Nov. 11, 2019, 12:35 p.m.
Closed by commit rHG95d0532ad171: status: move initialization closer together (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7145?vs=17366&id=18010

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7145/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7145

AFFECTED FILES
  mercurial/commands.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, marmoute, pulkit
Cc: marmoute, mercurial-devel

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -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')