aboutsummaryrefslogtreecommitdiff
path: root/bzr.rb
blob: 9302c5779a756a9f02d87c6e5d0f7a7bccfcf21c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
def vcs_init
	`bzr init`
end

def vcs_add(file)
	`bzr add #{file}`
end

def vcs_revno
	`bzr revno`.to_i
end

def vcs_cat revision, file
	`export LC_ALL=de_DE.UTF-8;bzr cat -r #{revision} #{file}`
end

def vcs_history
	`export LC_ALL=de_DE.UTF-8; bzr log --forward`.split("-"*60)
end

def vcs_commit comment
	`export LC_ALL=de_DE.UTF-8; bzr commit -m '#{comment}'`
end