sapling/eden/scm/tests/test-fb-hgext-tweakdefaults-opawarecommands.t
Xavier Deguillard e0e01cbc81 bundle2: backout D19656773
Summary: This broke a bunch of tests. Revert it and re-enable all the tests.

Reviewed By: DurhamG

Differential Revision: D19665042

fbshipit-source-id: c3c17e3ac7e2ea028be5b5836bc8349cdf56184e
2020-01-31 10:48:19 -08:00

30 lines
898 B
Perl

#chg-compatible
$ enable amend rebase tweakdefaults
$ configure evolution
Setup repo
$ hg init opawarerepo
$ cd opawarerepo
$ echo root > root && hg ci -Am root
adding root
Check amend metadata
$ echo a > a && hg ci -Am a
adding a
$ echo aa > a && hg amend
$ hg debugobsolete
09d39afb522a08bdb03dc231608f7a3488ab4edc * 0 (Thu Jan 01 00:00:00 1970 +0000) {'operation': 'amend', 'user': 'test'} (glob)
Check rebase metadata
$ hg book -r . destination
$ hg up 0
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
$ echo b > b && hg ci -Am b
adding b
$ hg rebase -r . -d destination
rebasing 1e9a3c00cbe9 "b"
$ hg debugobsolete
09d39afb522a08bdb03dc231608f7a3488ab4edc * 0 (Thu Jan 01 00:00:00 1970 +0000) {'operation': 'amend', 'user': 'test'} (glob)
* * 0 (Thu Jan 01 00:00:00 1970 +0000) {'operation': 'rebase', 'user': 'test'} (glob)