Show More
@@ -1535,3 +1535,43 b' produced by `hg shelve`.' | |||||
1535 | $ hg patch -p1 test_patch.patch |
|
1535 | $ hg patch -p1 test_patch.patch | |
1536 | applying test_patch.patch |
|
1536 | applying test_patch.patch | |
1537 | #endif |
|
1537 | #endif | |
|
1538 | ||||
|
1539 | -- if phasebased, shelve works without patch and bundle | |||
|
1540 | ||||
|
1541 | $ hg update -q --clean . | |||
|
1542 | $ hg strip -q -r 0 | |||
|
1543 | $ rm -r .hg/shelve* | |||
|
1544 | $ echo import antigravity >> somefile.py | |||
|
1545 | $ hg add somefile.py | |||
|
1546 | $ hg shelve -q | |||
|
1547 | #if phasebased | |||
|
1548 | $ rm .hg/shelved/default.hg | |||
|
1549 | $ rm .hg/shelved/default.patch | |||
|
1550 | #endif | |||
|
1551 | ||||
|
1552 | shelve --list --patch should work even with no patch file. | |||
|
1553 | ||||
|
1554 | $ hg shelve --list --patch | |||
|
1555 | default (*s ago) * (changes in empty repository) (glob) | |||
|
1556 | ||||
|
1557 | diff --git a/somefile.py b/somefile.py | |||
|
1558 | new file mode 100644 | |||
|
1559 | --- /dev/null | |||
|
1560 | +++ b/somefile.py | |||
|
1561 | @@ -0,0 +1,1 @@ | |||
|
1562 | +import antigravity | |||
|
1563 | ||||
|
1564 | $ hg unshelve | |||
|
1565 | unshelving change 'default' | |||
|
1566 | ||||
|
1567 | #if phasebased | |||
|
1568 | $ ls .hg/shelve-backup | |||
|
1569 | default.shelve | |||
|
1570 | #endif | |||
|
1571 | ||||
|
1572 | #if stripbased | |||
|
1573 | $ ls .hg/shelve-backup | |||
|
1574 | default.hg | |||
|
1575 | default.patch | |||
|
1576 | default.shelve | |||
|
1577 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now