Mercurial > hg > soundsoftware-site
view test/exemplars/changeset_exemplar.rb @ 299:defe55be97b9 feature_73
Do not show external checkbox/field until the repo has been automatically populated
Pull external Hg as well as git and svn repos
Some textual changes
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 24 Mar 2011 15:48:36 +0000 |
parents | 513646585e45 |
children | cbb26bc654de |
line wrap: on
line source
class Changeset < ActiveRecord::Base generator_for :revision, :method => :next_revision generator_for :committed_on => Date.today generator_for :repository, :method => :generate_repository def self.next_revision @last_revision ||= '1' @last_revision.succ! @last_revision end def self.generate_repository Repository::Subversion.generate! end end