##// END OF EJS Templates
commands: use field names instead of field numbers on scmutil.status...
Augie Fackler -
r44045:1e1bad31 default
parent child Browse files
Show More
@@ -2116,13 +2116,13 b' def _docommit(ui, repo, *pats, **opts):'
2116
2116
2117 if not node:
2117 if not node:
2118 stat = cmdutil.postcommitstatus(repo, pats, opts)
2118 stat = cmdutil.postcommitstatus(repo, pats, opts)
2119 if stat[3]:
2119 if stat.deleted:
2120 ui.status(
2120 ui.status(
2121 _(
2121 _(
2122 b"nothing changed (%d missing files, see "
2122 b"nothing changed (%d missing files, see "
2123 b"'hg status')\n"
2123 b"'hg status')\n"
2124 )
2124 )
2125 % len(stat[3])
2125 % len(stat.deleted)
2126 )
2126 )
2127 else:
2127 else:
2128 ui.status(_(b"nothing changed\n"))
2128 ui.status(_(b"nothing changed\n"))
@@ -6853,7 +6853,11 b' def status(ui, repo, *pats, **opts):'
6853 opts.get(b'subrepos'),
6853 opts.get(b'subrepos'),
6854 )
6854 )
6855
6855
6856 changestates = zip(states, pycompat.iterbytestr(b'MAR!?IC'), stat)
6856 changestates = zip(
6857 states,
6858 pycompat.iterbytestr(b'MAR!?IC'),
6859 [getattr(stat, s.decode('utf8')) for s in states],
6860 )
6857
6861
6858 copy = {}
6862 copy = {}
6859 if (
6863 if (
General Comments 0
You need to be logged in to leave comments. Login now