Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@novell.com>2010-11-11 13:34:12 +0300
committerMike Krüger <mkrueger@novell.com>2010-11-11 13:34:12 +0300
commit9955b31ed3389fb8bacb0218344c9d15eae23c32 (patch)
tree3175413ca231b2c3e6fa4befb57bb55977c002a1 /main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs
parent5775a8e4b7f32be3c09e588e9eaafb22136a85dc (diff)
Fixed 'Bug 324878 - Commit message is lost if there is an error'.
Diffstat (limited to 'main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs')
-rw-r--r--main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/CommitDialog.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/CommitDialog.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/CommitDialog.cs
index a50a3ac75a..f5f9f596d0 100644
--- a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/CommitDialog.cs
+++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Dialogs/CommitDialog.cs
@@ -26,7 +26,7 @@ namespace MonoDevelop.VersionControl.Dialogs
store = new ListStore(typeof (Gdk.Pixbuf), typeof (string), typeof (string), typeof(bool), typeof(object));
fileList.Model = store;
this.changeSet = changeSet;
- oldMessage = changeSet.GlobalComment;
+ oldMessage = ChangeSet.GlobalComment;
CellRendererText crt = new CellRendererText ();
var crp = new CellRendererPixbuf ();
@@ -86,13 +86,13 @@ namespace MonoDevelop.VersionControl.Dialogs
selected.Add (info.LocalPath);
}
- if (changeSet.GlobalComment.Length == 0) {
+ if (string.IsNullOrEmpty (ChangeSet.GlobalComment)) {
AuthorInformation aInfo;
CommitMessageFormat fmt = VersionControlService.GetCommitMessageFormat (changeSet, out aInfo);
Message = changeSet.GenerateGlobalComment (fmt, aInfo);
}
else
- Message = changeSet.GlobalComment;
+ Message = ChangeSet.GlobalComment;
textview.Buffer.Changed += OnTextChanged;
@@ -123,7 +123,7 @@ namespace MonoDevelop.VersionControl.Dialogs
}
foreach (string file in todel)
changeSet.RemoveFile (file);
- changeSet.GlobalComment = Message;
+ ChangeSet.GlobalComment = Message;
// Perform the commit
@@ -137,7 +137,7 @@ namespace MonoDevelop.VersionControl.Dialogs
MessageService.ShowException (ex);
res = false;
}
-
+ System.Console.WriteLine ("RES: " + res);
if (!res) {
// Commit failed. Rollback the previous extensions
for (int m=0; m<n; m++) {
@@ -151,14 +151,14 @@ namespace MonoDevelop.VersionControl.Dialogs
Hide ();
}
} else {
- changeSet.GlobalComment = oldMessage;
+ ChangeSet.GlobalComment = oldMessage;
}
base.OnResponse (type);
}
void OnTextChanged (object s, EventArgs args)
{
- changeSet.GlobalComment = Message;
+ ChangeSet.GlobalComment = Message;
}
public void EndCommit (bool success)