# File lib/vlad/mercurial.rb, line 9 def checkout(revision, destination) revision = 'tip' if revision =~ /^head$/i [ "if [ ! -d #{destination}/.hg ]; then hg init -R #{destination}; fi", "hg pull -r #{revision} -R #{destination} #{repository}" ].join(' && ') end