def scm_command_version
scm_version = scm_version_from_command_line
+ if scm_version.respond_to?(:force_encoding)
+ scm_version.force_encoding('ASCII-8BIT')
+ end
if m = scm_version.match(%r{\A(.*?)((\d+\.)+\d+)})
m[2].scan(%r{\d+}).collect(&:to_i)
end
def scm_command_version
scm_version = scm_version_from_command_line
+ if scm_version.respond_to?(:force_encoding)
+ scm_version.force_encoding('ASCII-8BIT')
+ end
if m = scm_version.match(%r{\A(.*?)((\d+\.)+\d+)}m)
m[2].scan(%r{\d+}).collect(&:to_i)
end
def darcs_binary_version
darcsversion = darcs_binary_version_from_command_line
+ if darcsversion.respond_to?(:force_encoding)
+ darcsversion.force_encoding('ASCII-8BIT')
+ end
if m = darcsversion.match(%r{\A(.*?)((\d+\.)+\d+)})
m[2].scan(%r{\d+}).collect(&:to_i)
end
def scm_command_version
scm_version = scm_version_from_command_line
+ if scm_version.respond_to?(:force_encoding)
+ scm_version.force_encoding('ASCII-8BIT')
+ end
if m = scm_version.match(%r{\A(.*?)((\d+\.)+\d+)})
m[2].scan(%r{\d+}).collect(&:to_i)
end
# release number (eg 0.9.5 or 1.0) or as a revision
# id composed of 12 hexa characters.
theversion = hgversion_from_command_line
+ if theversion.respond_to?(:force_encoding)
+ theversion.force_encoding('ASCII-8BIT')\r
+ end\r
if m = theversion.match(%r{\A(.*?)((\d+\.)+\d+)})
m[2].scan(%r{\d+}).collect(&:to_i)
end
\r
def svn_binary_version\r
scm_version = scm_version_from_command_line\r
+ if scm_version.respond_to?(:force_encoding)\r
+ scm_version.force_encoding('ASCII-8BIT')\r
+ end\r
if m = scm_version.match(%r{\A(.*?)((\d+\.)+\d+)})\r
m[2].scan(%r{\d+}).collect(&:to_i)\r
end\r