Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (19 sloc) 0.448 kb
module CVS
class WorkingCopy < VersionedFile
def initialize(path)
@path = (path =~ %r{/$}) ? path : "#{path}/" # add / if not there
end
def dirname
@path
end
def basename
'.'
end
def status
cvs(:update, :pretend => true, :quiet => true).inject({}) do |files,line|
files.update($1 => status_from_line(line)) if line =~ /^\S (.*)$/
files
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.