public
Description: Piston is a utility that eases vendor branch management. This repository is a complete reimplementation of Piston to provide different backends, depending on the repositories and working copies you pistonize from.
Homepage: http://piston.rubyforge.org/
Clone URL: git://github.com/francois/piston.git
francois (author)
Fri May 09 06:56:17 -0700 2008
commit  b78d52bb13bc707c6af3eecd7a02a67d8f8ffd19
tree    75ee16aa7b6817958ab0264c021ced9987fcb53d
parent  29185f5c30acfc9ab36f661bd44d1429e0e8d336
piston / samples / common.rb
100644 20 lines (14 sloc) 0.459 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Common code between all sample files.
# Setup the environment.
require "pathname"
require "logger"
 
@root = Pathname.new(File.dirname(__FILE__)).parent
$:.unshift @root + "lib"
 
require "piston"
require "piston/svn"
require "piston/git"
 
PISTON_DEFAULT_LOGGER = Logger.new(STDOUT)
Piston::Repository.logger = Piston::WorkingCopy.logger = PISTON_DEFAULT_LOGGER
def logger; PISTON_DEFAULT_LOGGER; end
 
include Piston::Svn::Client
include Piston::Git::Client