Blame view

tests/branch-bundle.t 698 Bytes
e67f8fe66   Shrikant Sharat   Tests for --branc...
1
2
3
4
5
  Branch b1.
  
    $ pg branch b1
    $ pg checkout b1
    Switched to branch 'b1'
e97637cd0   Shrikant Sharat   Moved common code...
6
    $ cat > test-plugin/aliases.zsh <<EOF
e67f8fe66   Shrikant Sharat   Tests for --branc...
7
8
9
10
11
12
13
14
15
16
17
18
    > alias hehe='echo hehe from b1'
    > EOF
    $ pg commit -am 'Change for b1'
    \[b1 [a-f0-9]{7}\] Change for b1 (re)
     1 file changed, 1 insertion(+), 1 deletion(-)
  
  Go back to master.
  
    $ pg checkout master
    Switched to branch 'master'
  
  Load plugin from b1.
e97637cd0   Shrikant Sharat   Moved common code...
19
    $ antigen-bundle $PWD/test-plugin --branch=b1
e67f8fe66   Shrikant Sharat   Tests for --branc...
20
21
22
23
24
25
26
27
    Cloning into '.+?'\.\.\. (re)
    done.
    Switched to a new branch 'b1'
    Branch b1 set up to track remote branch b1 from origin.
    $ hehe
    hehe from b1
  
  Load plugin from master.
e97637cd0   Shrikant Sharat   Moved common code...
28
    $ antigen-bundle $PWD/test-plugin
e67f8fe66   Shrikant Sharat   Tests for --branc...
29
30
31
32
    Cloning into '.+?'\.\.\. (re)
    done.
    $ hehe
    hehe