@@ 58-72 (lines=15) @@ | ||
55 | ); |
|
56 | } |
|
57 | ||
58 | public function testHgStackCommands() |
|
59 | { |
|
60 | $this->assertEquals( |
|
61 | "hg clone https://bitbucket.org/durin42/hgsubversion && hg pull && hg add && hg commit -m 'changed' && hg push && hg tag 0.6.0 && hg push -b '0.6.0'", |
|
62 | $this->hgStack |
|
63 | ->cloneRepo('https://bitbucket.org/durin42/hgsubversion') |
|
64 | ->pull() |
|
65 | ->add() |
|
66 | ->commit('changed') |
|
67 | ->push() |
|
68 | ->tag('0.6.0') |
|
69 | ->push('0.6.0') |
|
70 | ->getCommand() |
|
71 | ); |
|
72 | } |
|
73 | ||
74 | public function testHgStackCommandsWithTagMessage() |
|
75 | { |
|
@@ 74-88 (lines=15) @@ | ||
71 | ); |
|
72 | } |
|
73 | ||
74 | public function testHgStackCommandsWithTagMessage() |
|
75 | { |
|
76 | $this->assertEquals( |
|
77 | "hg clone https://bitbucket.org/durin42/hgsubversion && hg pull && hg add && hg commit -m 'changed' && hg push && hg tag -m 'message' 0.6.0 && hg push -b '0.6.0'", |
|
78 | $this->hgStack |
|
79 | ->cloneRepo('https://bitbucket.org/durin42/hgsubversion') |
|
80 | ->pull() |
|
81 | ->add() |
|
82 | ->commit('changed') |
|
83 | ->push() |
|
84 | ->tag('0.6.0', 'message') |
|
85 | ->push('0.6.0') |
|
86 | ->getCommand() |
|
87 | ); |
|
88 | } |
|
89 | } |
|
90 |