Sha256: 6a070bddbf3b99283a3824527e436b7d577e26c3535d856787acbc64ea40121b
Contents?: true
Size: 705 Bytes
Versions: 23
Compression:
Stored size: 705 Bytes
Contents
# frozen_string_literal: true require_relative 'py_client' module OhlohScm module PyBridge class HgClient < PyClient def initialize(repository_url) @repository_url = repository_url @py_script = "#{__dir__}/hg_server.py" end def cat_file(revision, file) send_command("CAT_FILE\t#{revision}\t#{file}") rescue RuntimeError => e raise unless e.message =~ /not found in manifest/ # File does not exist. end def parent_tokens(revision) send_command("PARENT_TOKENS\t#{revision}").split("\t") end private def open_repository send_command("REPO_OPEN\t#{@repository_url}") end end end end
Version data entries
23 entries across 23 versions & 1 rubygems