Show More
@@ -2410,6 +2410,12 b' def revert(ui, repo, ctx, parents, *pats' | |||
|
2410 | 2410 | dsadded |= _deletedadded |
|
2411 | 2411 | dsmodified |= _deletedmodified |
|
2412 | 2412 | |
|
2413 | # only take into account for removes between wc and target | |
|
2414 | clean |= dsremoved - removed | |
|
2415 | dsremoved &= removed | |
|
2416 | # distinct between dirstate remove and other | |
|
2417 | removed -= dsremoved | |
|
2418 | ||
|
2413 | 2419 | # if f is a rename, update `names` to also revert the source |
|
2414 | 2420 | cwd = repo.getcwd() |
|
2415 | 2421 | for f in dsadded: |
@@ -2429,8 +2435,6 b' def revert(ui, repo, ctx, parents, *pats' | |||
|
2429 | 2435 | dsmodified -= missingmodified |
|
2430 | 2436 | missingadded = dsadded - smf |
|
2431 | 2437 | dsadded -= missingadded |
|
2432 | clean |= dsremoved - smf | |
|
2433 | dsremoved -= clean | |
|
2434 | 2438 | |
|
2435 | 2439 | # action to be actually performed by revert |
|
2436 | 2440 | # (<list of file>, message>) tuple |
@@ -2448,6 +2452,7 b' def revert(ui, repo, ctx, parents, *pats' | |||
|
2448 | 2452 | (missingmodified, (actions['remove'], True)), |
|
2449 | 2453 | (dsadded, (actions['revert'], True)), |
|
2450 | 2454 | (missingadded, (actions['remove'], False)), |
|
2455 | (removed, (actions['add'], True)), | |
|
2451 | 2456 | (dsremoved, (actions['undelete'], True)), |
|
2452 | 2457 | (clean, (None, False)), |
|
2453 | 2458 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now