equal
deleted
inserted
replaced
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', |