module Piston class PistonError < RuntimeError; end class UnknownRepository < PistonError def initialize(url) super "Repository at URL #{url} could not be contacted -- the repository does not seem to exist" end end class LocalChangesPending < PistonError def initialize(path) super "The working copy rooted at #{path} has pending changes. Please run 'svn update' before running Piston again" end end class RepositoryUuidChanged < PistonError def initialize(url, expected_uuid, actual_uuid) super "The repository at #{url} changed UUID from #{expected_uuid} to #{actual_uuid} -- Piston will not update/switch" end end class MissingRepositoryLocation < PistonError def initialize(url) super "Repository location #{url} does not exist anymore" end end REMOTE_UUID = "piston:remote-uuid" REMOTE_ROOT = "piston:remote-root" REMOTE_REVISION = "piston:remote-revision" LOCAL_REVISION = "piston:local-revision" LOCKED = "piston:locked" end require 'piston/version'