Mercurial > hg-stable
comparison hgext/uncommit.py @ 47438:7f7457f84311
cmdutil: make resolvecommitoptions() work on str-keyed opts
As with `checknotesize()`, I also changed to snake_case while at it,
to help extensions a little.
Differential Revision: https://phab.mercurial-scm.org/D10863
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 10 Jun 2021 15:45:22 -0700 |
parents | 54849b65dc5f |
children | 4f01821fa0ec |
comparison
equal
deleted
inserted
replaced
47437:fca9c63f160e | 47438:7f7457f84311 |
---|---|
152 | 152 |
153 If no files are specified, the commit will be pruned, unless --keep is | 153 If no files are specified, the commit will be pruned, unless --keep is |
154 given. | 154 given. |
155 """ | 155 """ |
156 cmdutil.check_note_size(opts) | 156 cmdutil.check_note_size(opts) |
157 cmdutil.resolve_commit_options(ui, opts) | |
157 opts = pycompat.byteskwargs(opts) | 158 opts = pycompat.byteskwargs(opts) |
158 cmdutil.resolvecommitoptions(ui, opts) | |
159 | 159 |
160 with repo.wlock(), repo.lock(): | 160 with repo.wlock(), repo.lock(): |
161 | 161 |
162 st = repo.status() | 162 st = repo.status() |
163 m, a, r, d = st.modified, st.added, st.removed, st.deleted | 163 m, a, r, d = st.modified, st.added, st.removed, st.deleted |