| | @@ -662,10 +662,11 @@ |
| 662 | 662 | # Change the type of first (typically from Change to Add): |
| 663 | 663 | $first retype add |
| 664 | 664 | |
| 665 | 665 | # Move any tags and branches from the old to the new root. |
| 666 | 666 | $rev11 movesymbolsto $first |
| 667 | + $rev11 destroy |
| 667 | 668 | } |
| 668 | 669 | |
| 669 | 670 | # Mark all the special revisions as such |
| 670 | 671 | foreach rev $revlist { |
| 671 | 672 | log write 3 file "Revision on default branch: [$rev revnr]" |
| | @@ -941,17 +942,12 @@ |
| 941 | 942 | |
| 942 | 943 | set rev12 [$last defaultbranchchild] |
| 943 | 944 | $rev12 cutdefaultbranchparent |
| 944 | 945 | $last cutdefaultbranchchild |
| 945 | 946 | |
| 946 | | - # TODO :: Combine into one method 'changeparent', or |
| 947 | | - # 'moveparent', etc. |
| 948 | | - $rev12 cutfromparent |
| 949 | | - $rev12 setparent $last |
| 950 | | - |
| 951 | | - $last cutfromchild |
| 952 | | - $last setchild $rev12 |
| 947 | + $rev12 changeparent $last |
| 948 | + $last changechild $rev12 |
| 953 | 949 | |
| 954 | 950 | ldelete myroots $rev12 |
| 955 | 951 | |
| 956 | 952 | # Note and remember that the type of rev12 was already |
| 957 | 953 | # adjusted by AdjustNonTrunkDefaultBranch, so we don't |
| 958 | 954 | |