Show More
@@ -2765,9 +2765,6 b' def revert(ui, repo, ctx, parents, *pats' | |||||
2765 | (unknown, actions['unknown'], discard), |
|
2765 | (unknown, actions['unknown'], discard), | |
2766 | ) |
|
2766 | ) | |
2767 |
|
2767 | |||
2768 | needdata = ('revert', 'add', 'undelete') |
|
|||
2769 | _revertprefetch(repo, ctx, *[actions[name][0] for name in needdata]) |
|
|||
2770 |
|
||||
2771 | wctx = repo[None] |
|
2768 | wctx = repo[None] | |
2772 | for abs, (rel, exact) in sorted(names.items()): |
|
2769 | for abs, (rel, exact) in sorted(names.items()): | |
2773 | # target file to be touch on disk (relative to cwd) |
|
2770 | # target file to be touch on disk (relative to cwd) | |
@@ -2797,6 +2794,9 b' def revert(ui, repo, ctx, parents, *pats' | |||||
2797 |
|
2794 | |||
2798 |
|
2795 | |||
2799 | if not opts.get('dry_run'): |
|
2796 | if not opts.get('dry_run'): | |
|
2797 | needdata = ('revert', 'add', 'undelete') | |||
|
2798 | _revertprefetch(repo, ctx, *[actions[name][0] for name in needdata]) | |||
|
2799 | ||||
2800 | _performrevert(repo, parents, ctx, actions) |
|
2800 | _performrevert(repo, parents, ctx, actions) | |
2801 |
|
2801 | |||
2802 | # get the list of subrepos that must be reverted |
|
2802 | # get the list of subrepos that must be reverted |
General Comments 0
You need to be logged in to leave comments.
Login now