Sha256: 3f70b671603ba060b982eb05ad9b5a3c8a2fc13926c2918fa6692a8ce1c9b363
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
module OhlohScm::Adapters class HgAdapter < AbstractAdapter def exist? begin !!(head_token) rescue logger.debug { $! } false end end def ls_tree(token) run("cd '#{path}' && hg manifest -r #{token} | #{ string_encoder }").split("\n") end def export(dest_dir, token='tip') run("cd '#{path}' && hg archive -r #{token} '#{dest_dir}'") # Hg leaves a little cookie crumb in the export directory. Remove it. File.delete(File.join(dest_dir, '.hg_archival.txt')) if File.exist?(File.join(dest_dir, '.hg_archival.txt')) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ohloh_scm-2.1.0 | lib/ohloh_scm/adapters/hg/misc.rb |
ohloh_scm-2.0.1 | lib/ohloh_scm/adapters/hg/misc.rb |
ohloh_scm-2.0.0 | lib/ohloh_scm/adapters/hg/misc.rb |