Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 43635: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 | 8e175a3d64bd |
children | 1e1bad31b427 |
comparison
equal
deleted
inserted
replaced
43634:7f4d58c21aec | 43635:95d0532ad171 |
---|---|
6815 | 6815 |
6816 if opts.get(b'print0'): | 6816 if opts.get(b'print0'): |
6817 end = b'\0' | 6817 end = b'\0' |
6818 else: | 6818 else: |
6819 end = b'\n' | 6819 end = b'\n' |
6820 copy = {} | |
6821 states = b'modified added removed deleted unknown ignored clean'.split() | 6820 states = b'modified added removed deleted unknown ignored clean'.split() |
6822 show = [k for k in states if opts.get(k)] | 6821 show = [k for k in states if opts.get(k)] |
6823 if opts.get(b'all'): | 6822 if opts.get(b'all'): |
6824 show += ui.quiet and (states[:4] + [b'clean']) or states | 6823 show += ui.quiet and (states[:4] + [b'clean']) or states |
6825 | 6824 |
6854 opts.get(b'subrepos'), | 6853 opts.get(b'subrepos'), |
6855 ) | 6854 ) |
6856 | 6855 |
6857 changestates = zip(states, pycompat.iterbytestr(b'MAR!?IC'), stat) | 6856 changestates = zip(states, pycompat.iterbytestr(b'MAR!?IC'), stat) |
6858 | 6857 |
6858 copy = {} | |
6859 if ( | 6859 if ( |
6860 opts.get(b'all') | 6860 opts.get(b'all') |
6861 or opts.get(b'copies') | 6861 or opts.get(b'copies') |
6862 or ui.configbool(b'ui', b'statuscopies') | 6862 or ui.configbool(b'ui', b'statuscopies') |
6863 ) and not opts.get(b'no_status'): | 6863 ) and not opts.get(b'no_status'): |