pijul_org / pijul

New test to check for discussion #314

By pmeunier on October 5, 2018
This patch is not signed.
9DNZVkGd6C9vCbRoDx7mRBMutLJ3btFYi5KCRRuQh5CasUJSNpgQmezE7XY65DQQ98SLJvMZfXNUgeUxN9R9Y4rt
This patch is in the following branches:
latest
master
testing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bats

load ../test_helper


@test "Unable to switch branch" {
    pijul init hello
    cd hello
    echo "Hello, World!" > hello.txt
    pijul add hello.txt
    pijul record -a -m "Initial state" -A "me"

    pijul fork other
    pijul checkout other
    pijul mv hello.txt hello_world.txt
    echo "Hello!" > hello.txt
    pijul add hello.txt
    pijul record -am 'Moved "Hello, World!", created new hello.txt'

    pijul checkout master
    pijul branches > branches
    grep "^\* master" branches
    grep "^  other" branches

    pijul checkout other
    pijul branches > branches
    grep "^  master" branches
    grep "^\* other" branches
    touch foo
}