mirror of
https://github.com/facebook/sapling.git
synced 2024-12-26 22:47:26 +03:00
4efd06e29b
Reviewed By: sfilipco Differential Revision: D21913593 fbshipit-source-id: fb83477fde8287da34e67c2e34c6269029d0469f
40 lines
567 B
Perl
40 lines
567 B
Perl
#chg-compatible
|
|
|
|
$ configure modern
|
|
|
|
"import" can revive a commit
|
|
|
|
$ newrepo
|
|
|
|
$ drawdag <<'EOS'
|
|
> B
|
|
> |
|
|
> A
|
|
> EOS
|
|
|
|
$ hg export $B > $TESTTMP/b.patch
|
|
|
|
$ hg hide -q $B
|
|
$ hg log -r 'all()' -T '{desc}\n'
|
|
A
|
|
|
|
$ hg up -q $A
|
|
$ hg import -q --exact $TESTTMP/b.patch
|
|
$ hg log -r 'all()' -T '{desc}\n'
|
|
A
|
|
B
|
|
|
|
"commit" can revive a commit
|
|
|
|
$ newrepo
|
|
|
|
$ hg commit --config ui.allowemptycommit=1 -m A
|
|
|
|
$ hg hide -q .
|
|
$ hg log -r 'all()' -T '{desc}\n'
|
|
|
|
$ hg commit --config ui.allowemptycommit=1 -m A
|
|
$ hg log -r 'all()' -T '{desc}\n'
|
|
A
|
|
|