path_with_project="#{url}#{with_leading_slash(path)}"
cmd = "#{CVS_BIN} -d #{shell_quote root_url} rlog"
- cmd << " -d\">#{time_to_cvstime(identifier_from)}\"" if identifier_from
+ cmd << " -d\">#{time_to_cvstime_rlog(identifier_from)}\"" if identifier_from
cmd << " #{shell_quote path_with_project}"
shellout(cmd) do |io|
state="entry_start"
end
return time.strftime("%Y-%m-%d %H:%M:%S")
end
+
+ def time_to_cvstime_rlog(time)
+ return nil if time.nil?
+ t1 = time.clone.localtime
+ return t1.strftime("%Y-%m-%d %H:%M:%S")
+ end
def normalize_cvs_path(path)
normalize_path(path.gsub(/Attic\//,''))
end
assert_equal 14, cnt
end
+
+ def test_revisions_from_rev3
+ rev3_committed_on = Time.gm(2007, 12, 13, 16, 27, 22)
+ cnt = 0
+ @adapter.revisions('', rev3_committed_on, nil, :with_paths => true) do |revision|
+ cnt += 1
+ end
+ assert_equal 2, cnt
+ end
else
puts "Cvs test repository NOT FOUND. Skipping unit tests !!!"
def test_fake; assert true end