Mercurial > hg > soundsoftware-site
comparison lib/redmine/scm/adapters/cvs_adapter.rb @ 1464:261b3d9a4903 redmine-2.4
Update to Redmine 2.4 branch rev 12663
author | Chris Cannam |
---|---|
date | Tue, 14 Jan 2014 14:37:42 +0000 |
parents | 433d4f72a19b |
children | 51364c0cd58f |
comparison
equal
deleted
inserted
replaced
1296:038ba2d95de8 | 1464:261b3d9a4903 |
---|---|
333 | 333 |
334 # Returns the root url without the connexion string | 334 # Returns the root url without the connexion string |
335 # :pserver:anonymous@foo.bar:/path => /path | 335 # :pserver:anonymous@foo.bar:/path => /path |
336 # :ext:cvsservername:/path => /path | 336 # :ext:cvsservername:/path => /path |
337 def root_url_path | 337 def root_url_path |
338 root_url.to_s.gsub(/^:.+:\d*/, '') | 338 root_url.to_s.gsub(%r{^:.+?(?=/)}, '') |
339 end | 339 end |
340 | 340 |
341 # convert a date/time into the CVS-format | 341 # convert a date/time into the CVS-format |
342 def time_to_cvstime(time) | 342 def time_to_cvstime(time) |
343 return nil if time.nil? | 343 return nil if time.nil? |