aboutsummaryrefslogtreecommitdiff
path: root/bzr.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-02-23 20:57:57 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-02-23 20:57:57 +0100
commita22f20c0009844b79ff55ef8cbb1d95438c105a7 (patch)
tree45ec09f163add65b2527fb1ce0e6bb81df12f47a /bzr.rb
parentdb7c0a02cf5592b1b2406607d795230560fe547b (diff)
bugfix: bzr didn't worked when using non-ascii in Pollnames
Diffstat (limited to 'bzr.rb')
-rw-r--r--bzr.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/bzr.rb b/bzr.rb
index 1fd37db..cd1fe20 100644
--- a/bzr.rb
+++ b/bzr.rb
@@ -1,25 +1,26 @@
+BZRCMD="export LC_ALL=de_DE.UTF-8; bzr"
class VCS
def VCS.init
- `bzr init`
+ `#{BZRCMD} init`
end
def VCS.add file
- `bzr add #{file}`
+ `#{BZRCMD} add #{file}`
end
def VCS.revno
- `bzr revno`.to_i
+ `#{BZRCMD} revno`.to_i
end
def VCS.cat revision, file
- `export LC_ALL=de_DE.UTF-8;bzr cat -r #{revision} #{file}`
+ `#{BZRCMD} cat -r #{revision} #{file}`
end
def VCS.history
- `export LC_ALL=de_DE.UTF-8; bzr log --forward`.split("-"*60)
+ `#{BZRCMD} log --forward`.split("-"*60)
end
def VCS.commit comment
- `export LC_ALL=de_DE.UTF-8; bzr commit -m '#{comment}'`
+ `#{BZRCMD} commit -m '#{comment}'`
end
end