Changeset View
Changeset View
Standalone View
Standalone View
mercurial/commands.py
Show First 20 Lines • Show All 5481 Lines • ▼ Show 20 Line(s) | if opts.get('all'): | ||||
show += ui.quiet and (states[:4] + ['clean']) or states | show += ui.quiet and (states[:4] + ['clean']) or states | ||||
if not show: | if not show: | ||||
if ui.quiet: | if ui.quiet: | ||||
show = states[:4] | show = states[:4] | ||||
else: | else: | ||||
show = states[:5] | show = states[:5] | ||||
with util.timedcm('scmutil.match'): | |||||
m = scmutil.match(ctx2, pats, opts) | m = scmutil.match(ctx2, pats, opts) | ||||
with util.timedcm('repo.status (terse=%r)', terse): | |||||
if terse: | if terse: | ||||
# we need to compute clean and unknown to terse | # we need to compute clean and unknown to terse | ||||
stat = repo.status(ctx1.node(), ctx2.node(), m, | stat = repo.status(ctx1.node(), ctx2.node(), m, | ||||
'ignored' in show or 'i' in terse, | 'ignored' in show or 'i' in terse, | ||||
clean=True, unknown=True, | clean=True, unknown=True, | ||||
listsubrepos=opts.get('subrepos')) | listsubrepos=opts.get('subrepos')) | ||||
with util.timedcm('cmdutil.terse'): | |||||
stat = cmdutil.tersedir(stat, terse) | stat = cmdutil.tersedir(stat, terse) | ||||
else: | else: | ||||
stat = repo.status(ctx1.node(), ctx2.node(), m, | stat = repo.status(ctx1.node(), ctx2.node(), m, | ||||
'ignored' in show, 'clean' in show, | 'ignored' in show, 'clean' in show, | ||||
'unknown' in show, opts.get('subrepos')) | 'unknown' in show, opts.get('subrepos')) | ||||
changestates = zip(states, pycompat.iterbytestr('MAR!?IC'), stat) | changestates = zip(states, pycompat.iterbytestr('MAR!?IC'), stat) | ||||
if (opts.get('all') or opts.get('copies') | if (opts.get('all') or opts.get('copies') | ||||
or ui.configbool('ui', 'statuscopies')) and not opts.get('no_status'): | or ui.configbool('ui', 'statuscopies')) and not opts.get('no_status'): | ||||
copy = copies.pathcopies(ctx1, ctx2, m) | copy = copies.pathcopies(ctx1, ctx2, m) | ||||
ui.pager('status') | ui.pager('status') | ||||
▲ Show 20 Lines • Show All 762 Lines • Show Last 20 Lines |