aboutsummaryrefslogtreecommitdiff
path: root/bzr.rb
blob: 1fd37dbfecb84dc22326619c45e9ae24ee61402e (plain)
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
class VCS
	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
end