scm: cvs: override annotate() in model.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5410 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
28a8d62fe4
commit
0a0819f81e
|
@ -63,7 +63,7 @@ class Repository::Cvs < Repository
|
||||||
end
|
end
|
||||||
entries
|
entries
|
||||||
end
|
end
|
||||||
|
|
||||||
def cat(path, identifier=nil)
|
def cat(path, identifier=nil)
|
||||||
rev = nil
|
rev = nil
|
||||||
if ! identifier.nil?
|
if ! identifier.nil?
|
||||||
|
@ -72,7 +72,16 @@ class Repository::Cvs < Repository
|
||||||
end
|
end
|
||||||
scm.cat(path, rev.nil? ? nil : rev.committed_on)
|
scm.cat(path, rev.nil? ? nil : rev.committed_on)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def annotate(path, identifier=nil)
|
||||||
|
rev = nil
|
||||||
|
if ! identifier.nil?
|
||||||
|
rev = changesets.find_by_revision(identifier)
|
||||||
|
return nil if rev.nil?
|
||||||
|
end
|
||||||
|
scm.annotate(path, rev.nil? ? nil : rev.committed_on)
|
||||||
|
end
|
||||||
|
|
||||||
def diff(path, rev, rev_to)
|
def diff(path, rev, rev_to)
|
||||||
# convert rev to revision. CVS can't handle changesets here
|
# convert rev to revision. CVS can't handle changesets here
|
||||||
diff=[]
|
diff=[]
|
||||||
|
|
Loading…
Reference in New Issue