Show More
@@ -1624,6 +1624,13 b' Make a simple change' | |||
|
1624 | 1624 | $ echo change > f |
|
1625 | 1625 | $ hg ci -m 'change f' |
|
1626 | 1626 | |
|
1627 | Make a rename because we want to track renames. It is also important that the | |
|
1628 | faulty linkrev is not only the "start" commit to ensure the linkrev will be | |
|
1629 | used. | |
|
1630 | ||
|
1631 | $ hg mv f renamed | |
|
1632 | $ hg ci -m renamed | |
|
1633 | ||
|
1627 | 1634 | Make a second branch, we use a named branch to create a simple commit |
|
1628 | 1635 | that does not touch f. |
|
1629 | 1636 | |
@@ -1631,31 +1638,28 b' that does not touch f.' | |||
|
1631 | 1638 | $ hg branch -q dev |
|
1632 | 1639 | $ hg ci -Aqm dev |
|
1633 | 1640 | |
|
1634 |
Graft the initial change |
|
|
1635 | linkrev point to the older branch. | |
|
1641 | Graft the initial change and the rename. As f was untouched, we reuse the same | |
|
1642 | entry and the linkrev point to the older branch. | |
|
1636 | 1643 | |
|
1637 | 1644 | $ hg graft -q 'desc(change)' |
|
1638 | ||
|
1639 | Make a rename because we want to track renames. It is also important that the | |
|
1640 | faulty linkrev is not the "start" commit to ensure the linkrev will be used. | |
|
1641 | ||
|
1642 | $ hg mv f renamed | |
|
1643 | $ hg ci -m renamed | |
|
1645 | $ hg graft -q 'desc(renamed)' | |
|
1644 | 1646 | |
|
1645 | 1647 | $ hg log -G -T '{rev} {desc}' |
|
1646 |
@ |
|
|
1648 | @ 5 renamed | |
|
1649 | | | |
|
1650 | o 4 change f | |
|
1647 | 1651 | | |
|
1648 |
o 3 |
|
|
1652 | o 3 dev | |
|
1649 | 1653 | | |
|
1650 |
|
|
|
1651 | | | |
|
1654 | | o 2 renamed | |
|
1655 | | | | |
|
1652 | 1656 | | o 1 change f |
|
1653 | 1657 | |/ |
|
1654 | 1658 | o 0 empty f |
|
1655 | 1659 | |
|
1656 | 1660 | |
|
1657 |
The copy tracking should still reach rev |
|
|
1658 |
accessing the parent of |
|
|
1661 | The copy tracking should still reach rev 3 (branch creation). | |
|
1662 | accessing the parent of 5 (renamed) should not jump use to revision 1. | |
|
1659 | 1663 | |
|
1660 | 1664 | $ hg diff --git -r 'desc(dev)' -r . |
|
1661 | 1665 | diff --git a/f b/renamed |
@@ -1669,11 +1673,11 b' accessing the parent of 4 (renamed) shou' | |||
|
1669 | 1673 | Check debug output for copy tracing |
|
1670 | 1674 | |
|
1671 | 1675 | $ hg status --copies --rev 'desc(dev)' --rev . --config devel.debug.copies=yes --debug |
|
1672 |
debug.copies: searching copies from a51f36ab1704 to |
|
|
1676 | debug.copies: searching copies from a51f36ab1704 to 1f4aa1fd627b | |
|
1673 | 1677 | debug.copies: search mode: forward |
|
1674 |
debug.copies: looking into rename from a51f36ab1704 to |
|
|
1675 |
debug.copies: search limit: |
|
|
1676 | debug.copies: missing file to search: 1 | |
|
1678 | debug.copies: looking into rename from a51f36ab1704 to 1f4aa1fd627b | |
|
1679 | debug.copies: search limit: 3 | |
|
1680 | debug.copies: missing files to search: 1 | |
|
1677 | 1681 | debug.copies: tracing file: renamed |
|
1678 | 1682 | debug.copies: rename of: f |
|
1679 | 1683 | debug.copies: time: * seconds (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now