mirror of
https://github.com/facebook/sapling.git
synced 2024-12-28 15:44:27 +03:00
tests: move showgraph() to tinit.sh
Summary: It's duplicate in all the fbamend tests, and I want to make a change to it. Rather than duplicate it, let's fold it into `tinit`. In the future, I'll unify this with tglog, printdag, etc. Reviewed By: quark-zju Differential Revision: D9323267 fbshipit-source-id: c1db0f2f22ffadbcb8ad3c0bde329798db06f089
This commit is contained in:
parent
0ba172a19e
commit
d56ff5d1de
@ -7,9 +7,6 @@ Set up test environment.
|
||||
> [experimental]
|
||||
> evolution = createmarkers, allowunstable
|
||||
> EOF
|
||||
$ showgraph() {
|
||||
> hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
||||
> }
|
||||
$ reset() {
|
||||
> cd ..
|
||||
> rm -rf repo
|
||||
|
@ -6,9 +6,6 @@ Set up test environment.
|
||||
> [experimental]
|
||||
> evolution = createmarkers, allowunstable
|
||||
> EOF
|
||||
$ showgraph() {
|
||||
> hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
||||
> }
|
||||
|
||||
Test that rebased commits that would cause instability are inhibited.
|
||||
$ hg init repo && cd repo
|
||||
|
@ -9,9 +9,6 @@
|
||||
> hg add "$1"
|
||||
> hg ci -m "add $1"
|
||||
> }
|
||||
$ showgraph() {
|
||||
> hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
||||
> }
|
||||
|
||||
Test invalid value for amend.autorestack
|
||||
$ newrepo
|
||||
|
@ -8,9 +8,6 @@
|
||||
> hg add "$1"
|
||||
> hg ci -m "add $1"
|
||||
> }
|
||||
$ showgraph() {
|
||||
> hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
||||
> }
|
||||
|
||||
Test situation with divergence. Restack should rebase unstable children
|
||||
onto the newest successor of their parent.
|
||||
|
@ -8,9 +8,6 @@
|
||||
> hg add "$1"
|
||||
> hg ci -m "add $1"
|
||||
> }
|
||||
$ showgraph() {
|
||||
> hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
||||
> }
|
||||
|
||||
Restack does topological sort and only rebases "D" once:
|
||||
|
||||
|
@ -10,9 +10,6 @@ Set up test environment.
|
||||
> hg add "$1"
|
||||
> hg ci -m "add $1"
|
||||
> }
|
||||
$ showgraph() {
|
||||
> hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
||||
> }
|
||||
$ hg init restack && cd restack
|
||||
|
||||
Note: Repositories populated by `hg debugbuilddag` don't seem to
|
||||
|
@ -24,9 +24,6 @@ Set up test environment.
|
||||
> hg init repo
|
||||
> cd repo
|
||||
> }
|
||||
$ showgraph() {
|
||||
> hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
||||
> }
|
||||
|
||||
Initialize repo.
|
||||
$ hg init repo && cd repo
|
||||
|
@ -9,9 +9,6 @@ This test confirms cacheinvalidation in hg fold.
|
||||
> [experimental]
|
||||
> evolution = createmarkers, allowunstable
|
||||
> EOF
|
||||
$ showgraph() {
|
||||
> hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
||||
> }
|
||||
$ reset() {
|
||||
> cd ..
|
||||
> rm -rf repo
|
||||
|
@ -47,3 +47,7 @@ drawdag() {
|
||||
setconfig() {
|
||||
python "$RUNTESTDIR/setconfig.py" "$@"
|
||||
}
|
||||
|
||||
showgraph() {
|
||||
hg log --graph -T "{rev} {desc|firstline}" | sed \$d
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user