public MercurialClient(string repoPath, string mercurialPath) { if (string.IsNullOrEmpty(repoPath)) { throw new ArgumentException("repoPath cannot be empty"); } _hgClient = new HgClient(mercurialPath); _hgClient.Connect(repoPath); }