Show More
@@ -157,7 +157,8 b' def uncommit(ui, repo, *pats, **opts):' | |||||
157 |
|
157 | |||
158 | with repo.wlock(), repo.lock(): |
|
158 | with repo.wlock(), repo.lock(): | |
159 |
|
159 | |||
160 |
|
|
160 | st = repo.status() | |
|
161 | m, a, r, d = st.modified, st.added, st.removed, st.deleted | |||
161 | isdirtypath = any(set(m + a + r + d) & set(pats)) |
|
162 | isdirtypath = any(set(m + a + r + d) & set(pats)) | |
162 | allowdirtywcopy = opts[ |
|
163 | allowdirtywcopy = opts[ | |
163 | b'allow_dirty_working_copy' |
|
164 | b'allow_dirty_working_copy' |
General Comments 0
You need to be logged in to leave comments.
Login now