summaryrefslogtreecommitdiffstats
path: root/app/models/changeset.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-24 19:30:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-06-24 19:30:38 +0000
commitba1b857197abf897279ce4982c2c29004d668b7d (patch)
tree0c37fc52f911e4a504e8e6f54e0480d8c59c64d4 /app/models/changeset.rb
parentfaa3d984ab0a44da354b901f4962d3441b800f99 (diff)
downloadredmine-ba1b857197abf897279ce4982c2c29004d668b7d.tar.gz
redmine-ba1b857197abf897279ce4982c2c29004d668b7d.zip
Added Darcs basic support.
Files in the repository can not be viewed or downloaded since Darcs doesn't support cat-like command. git-svn-id: http://redmine.rubyforge.org/svn/trunk@573 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/changeset.rb')
-rw-r--r--app/models/changeset.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb
index 2038266f9..879896fe4 100644
--- a/app/models/changeset.rb
+++ b/app/models/changeset.rb
@@ -23,6 +23,7 @@ class Changeset < ActiveRecord::Base
validates_presence_of :repository_id, :revision, :committed_on, :commit_date
validates_numericality_of :revision, :only_integer => true
validates_uniqueness_of :revision, :scope => :repository_id
+ validates_uniqueness_of :scmid, :scope => :repository_id, :allow_nil => true
def committed_on=(date)
self.commit_date = date