mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
c4c48ecac7
Summary: Add support for mutation information being added when a commit is amended. Reviewed By: DurhamG, ikostia Differential Revision: D9975472 fbshipit-source-id: 57d51823e709f71a88ad0fb86992a0a38541527c
34 lines
1.1 KiB
Raku
34 lines
1.1 KiB
Raku
$ enable amend rebase
|
|
|
|
We need obsmarkers for now, to allow unstable commits
|
|
$ enable obsstore
|
|
|
|
$ cat >> $HGRCPATH <<EOF
|
|
> [mutation]
|
|
> record=true
|
|
> date=0 0
|
|
> EOF
|
|
$ newrepo
|
|
$ echo "base" > base
|
|
$ hg commit -Aqm base
|
|
$ echo "1" > file
|
|
$ hg commit -Aqm c1
|
|
|
|
Amend
|
|
|
|
$ for i in 2 3 4 5 6 7 8
|
|
> do
|
|
> echo $i >> file
|
|
> hg amend -m "c1 (amended $i)"
|
|
> done
|
|
$ hg debugmutation .
|
|
c5fb4c2b7fcf4b995e8cd8f6b0cb5186d9b5b935 amend by test at 1970-01-01T00:00:00 from:
|
|
61fdcd12ad98987cfda8da08c8e4d69f63c5fd89 amend by test at 1970-01-01T00:00:00 from:
|
|
661239d41405ed7e61d05a207ea470ba2a81b593 amend by test at 1970-01-01T00:00:00 from:
|
|
ac4fa5bf18651efbc4aea658be1f662cf6957b52 amend by test at 1970-01-01T00:00:00 from:
|
|
815e611f4a75e6752f30d74f243c48cdccf4bd1e amend by test at 1970-01-01T00:00:00 from:
|
|
c8d40e41915aa2f98b88954ce404025953dbc12a amend by test at 1970-01-01T00:00:00 from:
|
|
4c8af5bba994ede28e843f607374031db8abd043 amend by test at 1970-01-01T00:00:00 from:
|
|
c5d0fa8770bdde6ef311cc640a78a2f686be28b4
|
|
|