| 1 |
[!bzr] skip 'requires a working bzr client' |
| 2 |
handle bzr |
| 3 |
|
| 4 |
env BZR_EMAIL='Russ Cox <[email protected]>' |
| 5 |
env EMAIL='Russ Cox <[email protected]>' |
| 6 |
|
| 7 |
bzr init-repo . |
| 8 |
|
| 9 |
bzr init b |
| 10 |
cd b |
| 11 |
cp ../hello.go . |
| 12 |
bzr add hello.go |
| 13 |
bzr commit --commit-time='2017-09-21 21:20:12 -0400' -m 'hello world' |
| 14 |
bzr push .. |
| 15 |
cd .. |
| 16 |
rm b |
| 17 |
|
| 18 |
bzr log |
| 19 |
cmp stdout .bzr-log |
| 20 |
|
| 21 |
-- .bzr-log -- |
| 22 |
------------------------------------------------------------ |
| 23 |
revno: 1 |
| 24 |
committer: Russ Cox <[email protected]> |
| 25 |
branch nick: b |
| 26 |
timestamp: Thu 2017-09-21 21:20:12 -0400 |
| 27 |
message: |
| 28 |
hello world |
| 29 |
-- hello.go -- |
| 30 |
package main |
| 31 |
|
| 32 |
func main() { |
| 33 |
println("hello, world") |
| 34 |
} |