lib/rscm/revision.rb in rscm-0.4.3 vs lib/rscm/revision.rb in rscm-0.4.4
- old
+ new
@@ -60,10 +60,18 @@
result << revision.developer unless result.index(revision.developer)
end
result
end
+ def first
+ @revisions.first
+ end
+
+ def last
+ @revisions.last
+ end
+
# The latest Revision (with the latest time)
# or nil if there are none.
def latest
result = nil
each do |revision|
@@ -162,10 +170,15 @@
raise "can't set time to an inferiour value than the previous value" if @time && (t < @time)
@time = t
end
def ==(other)
- other.is_a?(self.class) && @files == other.files
+ other.is_a?(self.class) &&
+ @developer == other.developer &&
+ @identifier == other.identifier &&
+ @message == other.message &&
+ @time == other.time &&
+ @files == other.files
end
def <=>(other)
@time <=> other.time
end