2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2020-01-20 13:42:49 +03:00
|
|
|
$ enable rebase
|
|
|
|
$ setconfig phases.publish=false
|
2017-10-06 06:41:50 +03:00
|
|
|
|
|
|
|
Rebasing using a single transaction
|
|
|
|
|
|
|
|
$ hg init singletr && cd singletr
|
2020-01-20 13:42:49 +03:00
|
|
|
$ setconfig rebase.singletransaction=true
|
2017-10-06 06:41:50 +03:00
|
|
|
$ hg debugdrawdag <<'EOF'
|
|
|
|
> Z
|
|
|
|
> |
|
|
|
|
> | D
|
|
|
|
> | |
|
|
|
|
> | C
|
|
|
|
> | |
|
|
|
|
> Y B
|
|
|
|
> |/
|
|
|
|
> A
|
|
|
|
> EOF
|
|
|
|
- We should only see two status stored messages. One from the start, one from
|
|
|
|
- the end.
|
|
|
|
$ hg rebase --debug -b D -d Z | grep 'status stored'
|
|
|
|
rebase status stored
|
|
|
|
rebase status stored
|
2018-08-16 20:37:29 +03:00
|
|
|
$ tglog
|
2020-07-02 23:11:57 +03:00
|
|
|
o 8: a701fddfacec 'D' D
|
2017-10-06 06:41:50 +03:00
|
|
|
|
|
2020-07-02 23:11:57 +03:00
|
|
|
o 7: abc67d0cf023 'C' C
|
2017-10-06 06:41:50 +03:00
|
|
|
|
|
2020-07-02 23:11:57 +03:00
|
|
|
o 6: 9a6b5541d0c0 'B' B
|
2017-10-06 06:41:50 +03:00
|
|
|
|
|
2020-07-02 23:11:57 +03:00
|
|
|
o 4: e9b22a392ce0 'Z' Z
|
2017-10-06 06:41:50 +03:00
|
|
|
|
|
2020-07-02 23:11:57 +03:00
|
|
|
o 2: 633ae0eca5f4 'Y' Y
|
2017-10-06 06:41:50 +03:00
|
|
|
|
|
2019-12-17 05:10:38 +03:00
|
|
|
o 0: 426bada5c675 'A' A
|
2017-10-06 06:41:50 +03:00
|
|
|
|
|
|
|
$ cd ..
|