sapling/tests/test-rebase-flags.t
Jun Wu 8c4a52d608 config: enable obsstore by default
Summary:
This makes tests closer to production setup and removes a bunch of "saved
backup bundle to ..." messages.

With D9236657, this should not hurt server-side performance.

Unfortunately a lot tests cannot be migrated easily, mostly because revision
numbers are used. They are left with a TODO.

Reviewed By: DurhamG

Differential Revision: D9237694

fbshipit-source-id: c993fce18f07aba09f6d70964e248af8d501575a
2018-10-26 18:54:40 -07:00

64 lines
1.6 KiB
Perl

TODO: Make this test compatibile with obsstore enabled.
$ setconfig experimental.evolution=
#require execbit
$ tellmeabout() {
> if [ -x $1 ]; then
> echo $1 is an executable file with content:
> cat $1
> else
> echo $1 is a plain file with content:
> cat $1
> fi
> }
$ cat >> $HGRCPATH << EOF
> [extensions]
> rebase=
> EOF
Test rebasing a single commit that changes flags:
$ hg init repo
$ cd repo
$ echo "A" > foo
$ hg add foo
$ chmod +x foo
$ tellmeabout foo
foo is an executable file with content:
A
$ hg com -m "base"
$ hg mv foo foo_newloc
$ hg com -m "move"
$ hg up .~1
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
$ echo "B" > foo
$ hg com -m "change"
$ hg log -G
@ changeset: 2:a7f7eece6b0c
| tag: tip
| parent: 0:c0233516197f
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: change
|
| o changeset: 1:5f41048406b0
|/ user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: move
|
o changeset: 0:c0233516197f
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: base
$ hg rebase -r 1 -d .
rebasing 1:5f41048406b0 "move"
merging foo and foo_newloc to foo_newloc
saved backup bundle to $TESTTMP/repo/.hg/strip-backup/5f41048406b0-6cf73300-rebase.hg
$ hg up tip
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
$ tellmeabout foo_newloc
foo_newloc is an executable file with content:
B