Tweak irc notifications

This commit is contained in:
Hylke Bons 2011-02-27 00:53:14 +00:00
parent 34717cdd9b
commit 28d06b4eeb
5 changed files with 16 additions and 8 deletions

View file

@ -41,7 +41,7 @@ namespace SparkleLib {
{
Server = server;
//Channel = GetSHA1 (folder_name);
//Channel = GetSHA1 (server + folder_name);
Channel = folder_name;
if (!user_email.Equals ("") && user_email != null)

View file

@ -380,7 +380,8 @@ namespace SparkleLib {
}
} else {
// Not really needed as we won't be notified about our own messages
SparkleHelpers.DebugInfo ("Irc",
"[" + Name + "] False alarm, already up to date. (" + _CurrentHash + ")");
@ -541,7 +542,6 @@ namespace SparkleLib {
string message = FormatCommitMessage ();
Commit (message);
CheckForRemoteChanges ();
Push ();
} else {
@ -611,8 +611,9 @@ namespace SparkleLib {
return;
base.Commit (message);
SparkleHelpers.DebugInfo ("Commit", "[" + Name + "] " + message);
_CurrentHash = Head.CurrentCommit.Hash;
SparkleHelpers.DebugInfo ("Commit", "[" + Name + "] " + message + " (" + _CurrentHash);
SparkleEventArgs args = new SparkleEventArgs ("Commited") {
Message = message
@ -807,7 +808,9 @@ namespace SparkleLib {
args = new SparkleEventArgs ("PushingFailed");
if (PushingFailed != null)
PushingFailed (this, args);
PushingFailed (this, args);
CheckForChanges ();
} else {
@ -825,6 +828,9 @@ namespace SparkleLib {
if (PushingFinished != null)
PushingFinished (this, args);
if (!_IsPolling)
Listener.Client.SendMessage (SendType.Message, Listener.Channel, _CurrentHash);
}

View file

@ -2,14 +2,14 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string></string>
<key>CFBundleIconFile</key>
<string>sparkleshare</string>
<key>CFBundleIdentifier</key>
<string>org.sparkleshare.sparkleshare</string>
<key>CFBundleName</key>
<string>SparkleShare</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>10.6</string>
<key>NSMainNibFile</key>

View file

@ -11,6 +11,7 @@
<RootNamespace>SparkleShare</RootNamespace>
<AssemblyName>SparkleShare</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<ReleaseVersion>0.2</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

View file

@ -16,5 +16,6 @@ Global
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = SparkleShare.csproj
version = 0.2
EndGlobalSection
EndGlobal