Mercurial > hg
view contrib/vagrant/Vagrantfile @ 24056:ae453d166d51
trydiff: replace 'binarydiff' variable by 'binary' variable
It's not obvious, but every path in the 'if opts.git or losedatafn:'
block will have checked whether the file is binary [1]. Let's assign
the result of this check to a variable so we can simplify by checking
'binary and opts.git' in only one place instead of every place we
currently assign to 'binarydiff'.
[1] Except when deleting an empty file, but checking whether an empty
string is binary is very cheap anyway.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 22 Jan 2015 21:03:57 -0800 |
parents | 8da01b6e7b49 |
children | a31ffc445f02 |
line wrap: on
line source
# -*- mode: ruby -*- Vagrant.configure('2') do |config| # Debian 7.4 32-bit i386 without configuration management software config.vm.box = "puppetlabs/debian-7.4-32-nocm" #config.vm.box = "pnd/debian-wheezy32-basebox" config.vm.hostname = "tests" config.vm.define "tests" do |conf| conf.vm.provision :file, source: "run-tests.sh", destination:"run-tests.sh" conf.vm.provision :shell, path: "provision.sh" conf.vm.synced_folder "../..", "/hgshared" end end