Show More
@@ -609,7 +609,7 b' def copy(ui, repo, pats, opts, rename=Fa' | |||||
609 | else: |
|
609 | else: | |
610 | badstates = '?r' |
|
610 | badstates = '?r' | |
611 | m = scmutil.match(repo[None], [pat], opts, globbed=True) |
|
611 | m = scmutil.match(repo[None], [pat], opts, globbed=True) | |
612 | for abs in repo.walk(m): |
|
612 | for abs in repo[None].walk(m): | |
613 | state = repo.dirstate[abs] |
|
613 | state = repo.dirstate[abs] | |
614 | rel = m.rel(abs) |
|
614 | rel = m.rel(abs) | |
615 | exact = m.exact(abs) |
|
615 | exact = m.exact(abs) | |
@@ -2941,7 +2941,8 b' def revert(ui, repo, ctx, parents, *pats' | |||||
2941 | targetsubs = sorted(s for s in wctx.substate if m(s)) |
|
2941 | targetsubs = sorted(s for s in wctx.substate if m(s)) | |
2942 |
|
2942 | |||
2943 | if not m.always(): |
|
2943 | if not m.always(): | |
2944 |
|
|
2944 | matcher = matchmod.badmatch(m, lambda x, y: False) | |
|
2945 | for abs in repo[None].walk(matcher): | |||
2945 | names[abs] = m.rel(abs), m.exact(abs) |
|
2946 | names[abs] = m.rel(abs), m.exact(abs) | |
2946 |
|
2947 | |||
2947 | # walk target manifest to fill `names` |
|
2948 | # walk target manifest to fill `names` |
General Comments 0
You need to be logged in to leave comments.
Login now