Patchwork D7145: status: move initialization closer together

login
register
mail settings
Submitter phabricator
Date Oct. 22, 2019, 5:56 p.m.
Message ID <fcabe2ff0d1368638d2a822afa491abc@localhost.localdomain>
Download mbox | patch
Permalink /patch/42531/
State Not Applicable
Headers show

Comments

phabricator - Oct. 22, 2019, 5:56 p.m.
martinvonz updated this revision to Diff 17366.

REPOSITORY
  rHG Mercurial

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

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
Cc: mercurial-devel

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -6797,7 +6797,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'):
@@ -6836,6 +6835,7 @@ 
 
     changestates = zip(states, pycompat.iterbytestr(b'MAR!?IC'), stat)
 
+    copy = {}
     if (
         opts.get(b'all')
         or opts.get(b'copies')