Mercurial > hg
comparison hgext/uncommit.py @ 35004:3ebae3ec4664
py3: handle keyword arguments in hgext/uncommit.py
Differential Revision: https://phab.mercurial-scm.org/D1323
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 23 Oct 2017 00:06:23 +0530 |
parents | 9ea416a4b4f7 |
children | 867990238dc6 |
comparison
equal
deleted
inserted
replaced
35003:e68dd1909af3 | 35004:3ebae3ec4664 |
---|---|
27 context, | 27 context, |
28 copies, | 28 copies, |
29 error, | 29 error, |
30 node, | 30 node, |
31 obsolete, | 31 obsolete, |
32 pycompat, | |
32 registrar, | 33 registrar, |
33 scmutil, | 34 scmutil, |
34 ) | 35 ) |
35 | 36 |
36 cmdtable = {} | 37 cmdtable = {} |
150 This command undoes the effect of a local commit, returning the affected | 151 This command undoes the effect of a local commit, returning the affected |
151 files to their uncommitted state. This means that files modified or | 152 files to their uncommitted state. This means that files modified or |
152 deleted in the changeset will be left unchanged, and so will remain | 153 deleted in the changeset will be left unchanged, and so will remain |
153 modified in the working directory. | 154 modified in the working directory. |
154 """ | 155 """ |
156 opts = pycompat.byteskwargs(opts) | |
155 | 157 |
156 with repo.wlock(), repo.lock(): | 158 with repo.wlock(), repo.lock(): |
157 wctx = repo[None] | 159 wctx = repo[None] |
158 | 160 |
159 if not pats and not repo.ui.configbool('experimental', | 161 if not pats and not repo.ui.configbool('experimental', |