use shorter Hg as class names instead of Mercurial
This commit is contained in:
parent
fd3e0b5191
commit
7c3c5edd13
|
@ -9,7 +9,7 @@ SOURCES = \
|
|||
SparkleChangeSet.cs \
|
||||
SparkleFetcherBase.cs \
|
||||
SparkleFetcherGit.cs \
|
||||
SparkleFetcherMercurial.cs \
|
||||
SparkleFetcherHg.cs \
|
||||
SparkleHelpers.cs \
|
||||
SparkleListenerBase.cs \
|
||||
SparkleListenerIrc.cs \
|
||||
|
@ -17,7 +17,7 @@ SOURCES = \
|
|||
SparklePaths.cs \
|
||||
SparkleRepoBase.cs \
|
||||
SparkleRepoGit.cs \
|
||||
SparkleRepoMercurial.cs
|
||||
SparkleRepoHg.cs
|
||||
|
||||
|
||||
SMARTIRC4NET_FILES_EXPANDED = $(foreach file, $(SMARTIRC4NET_FILES), $(top_builddir)/$(file))
|
||||
|
|
|
@ -545,6 +545,7 @@ namespace SparkleLib {
|
|||
Commit (message);
|
||||
}
|
||||
|
||||
|
||||
new public static bool IsRepo (string path)
|
||||
{
|
||||
return System.IO.Directory.Exists (Path.Combine (path, ".git"));
|
||||
|
|
|
@ -23,9 +23,9 @@ using System.Text.RegularExpressions;
|
|||
|
||||
namespace SparkleLib {
|
||||
|
||||
public class SparkleRepoMercurial : SparkleRepoBase {
|
||||
public class SparkleRepoHg : SparkleRepoBase {
|
||||
|
||||
public SparkleRepoMercurial (string path, SparkleBackend backend) :
|
||||
public SparkleRepoHg (string path, SparkleBackend backend) :
|
||||
base (path, backend) { }
|
||||
|
||||
|
|
@ -518,8 +518,8 @@ namespace SparkleShare {
|
|||
if (Directory.Exists (Path.Combine (folder_path, ".git"))) {
|
||||
repo = new SparkleRepoGit (folder_path, SparkleBackend.DefaultBackend);
|
||||
} else if (Directory.Exists (Path.Combine (folder_path, ".hg"))) {
|
||||
SparkleBackend hg_backend = new SparkleBackend ("Hg", new string [] {"/opt/local/bin/hg"});
|
||||
repo = new SparkleRepoMercurial (folder_path, hg_backend);
|
||||
SparkleBackend hg_backend = new SparkleBackend ("Hg", new string [] {"/opt/local/bin/hg", "/usr/bin/hg"});
|
||||
repo = new SparkleRepoHg (folder_path, hg_backend);
|
||||
}
|
||||
|
||||
repo.NewChangeSet += delegate (SparkleChangeSet change_set, string repository_path) {
|
||||
|
|
Loading…
Reference in a new issue