aboutsummaryrefslogtreecommitdiff
path: root/bzr.rb
diff options
context:
space:
mode:
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