Show More
@@ -2226,7 +2226,12 b' def _dograft(ui, repo, *revs, **opts):' | |||||
2226 | raise error.Abort(_("can't specify --continue and revisions")) |
|
2226 | raise error.Abort(_("can't specify --continue and revisions")) | |
2227 | # read in unfinished revisions |
|
2227 | # read in unfinished revisions | |
2228 | if graftstate.exists(): |
|
2228 | if graftstate.exists(): | |
2229 |
|
|
2229 | statedata = _readgraftstate(repo, graftstate) | |
|
2230 | if statedata.get('date'): | |||
|
2231 | opts['date'] = statedata['date'] | |||
|
2232 | if statedata.get('user'): | |||
|
2233 | opts['user'] = statedata['user'] | |||
|
2234 | nodes = statedata['nodes'] | |||
2230 | revs = [repo[node].rev() for node in nodes] |
|
2235 | revs = [repo[node].rev() for node in nodes] | |
2231 | else: |
|
2236 | else: | |
2232 | cmdutil.wrongtooltocontinue(repo, _('graft')) |
|
2237 | cmdutil.wrongtooltocontinue(repo, _('graft')) |
@@ -1468,17 +1468,16 b' running `hg graft --continue`' | |||||
1468 | grafting 1:80e6d2c47cfe "added b" |
|
1468 | grafting 1:80e6d2c47cfe "added b" | |
1469 | grafting 2:8be98ac1a569 "added c" |
|
1469 | grafting 2:8be98ac1a569 "added c" | |
1470 |
|
1470 | |||
1471 | XXX: the user of 6 and 7 should be batman |
|
|||
1472 | $ hg log -Gr 3:: |
|
1471 | $ hg log -Gr 3:: | |
1473 |
@ changeset: 7: |
|
1472 | @ changeset: 7:11a36ffaacf2 | |
1474 | | tag: tip |
|
1473 | | tag: tip | |
1475 |
| user: |
|
1474 | | user: batman | |
1476 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1475 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1477 | | summary: added c |
|
1476 | | summary: added c | |
1478 | | |
|
1477 | | | |
1479 |
o changeset: 6:3 |
|
1478 | o changeset: 6:76803afc6511 | |
1480 | | parent: 3:9e887f7a939c |
|
1479 | | parent: 3:9e887f7a939c | |
1481 |
| user: |
|
1480 | | user: batman | |
1482 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
1481 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
1483 | | summary: added b |
|
1482 | | summary: added b | |
1484 | | |
|
1483 | | | |
@@ -1518,18 +1517,17 b' Test that --date is preserved and reused' | |||||
1518 | grafting 1:80e6d2c47cfe "added b" |
|
1517 | grafting 1:80e6d2c47cfe "added b" | |
1519 | grafting 2:8be98ac1a569 "added c" |
|
1518 | grafting 2:8be98ac1a569 "added c" | |
1520 |
|
1519 | |||
1521 | XXX: 8 and 9 show have the date we passed |
|
|||
1522 | $ hg log -Gr '.^^::.' |
|
1520 | $ hg log -Gr '.^^::.' | |
1523 |
@ changeset: 9: |
|
1521 | @ changeset: 9:1896b76e007a | |
1524 | | tag: tip |
|
1522 | | tag: tip | |
1525 | | user: test |
|
1523 | | user: test | |
1526 |
| date: |
|
1524 | | date: Fri Feb 13 21:18:00 2009 -0002 | |
1527 | | summary: added c |
|
1525 | | summary: added c | |
1528 | | |
|
1526 | | | |
1529 |
o changeset: 8: |
|
1527 | o changeset: 8:ce2b4f1632af | |
1530 | | parent: 3:9e887f7a939c |
|
1528 | | parent: 3:9e887f7a939c | |
1531 | | user: test |
|
1529 | | user: test | |
1532 |
| date: |
|
1530 | | date: Fri Feb 13 21:18:00 2009 -0002 | |
1533 | | summary: added b |
|
1531 | | summary: added b | |
1534 | | |
|
1532 | | | |
1535 | o changeset: 3:9e887f7a939c |
|
1533 | o changeset: 3:9e887f7a939c |
General Comments 0
You need to be logged in to leave comments.
Login now