~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/addins/ChangeLogAddIn/CommitDialogExtensionWidget.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
using MonoDevelop.Projects.Text;
35
35
using MonoDevelop.Ide.Gui;
36
36
using MonoDevelop.Ide;
 
37
using MonoDevelop.Projects;
37
38
 
38
39
namespace MonoDevelop.ChangeLogAddIn
39
40
{
73
74
                        haux.PackStart (optionsButton, false, false, 0);
74
75
                }
75
76
                
76
 
                public override void Initialize (ChangeSet cset)
 
77
                public override bool Initialize (ChangeSet cset)
77
78
                {       
78
79
                        this.cset = cset;
79
80
                        msgLabel = new Label ();
88
89
                                ShowAll ();
89
90
                                UpdateStatus ();
90
91
                        }
 
92
                        return enabled;
91
93
                }
92
94
                
93
95
                void UpdateStatus ()
154
156
                                                File.WriteAllText (ce.File, ce.Message);
155
157
                                        }
156
158
                                        if (!cset.ContainsFile (ce.File)) {
157
 
                                                if (!cset.Repository.IsVersioned (ce.File))
 
159
                                                if (!cset.Repository.GetVersionInfo (ce.File).IsVersioned)
158
160
                                                        cset.Repository.Add (ce.File, false, new MonoDevelop.Core.ProgressMonitoring.NullProgressMonitor ());
159
161
                                                cset.AddFile (ce.File);
160
162
                                        }
251
253
                                ChangeLogEntry entry;
252
254
                                if (!entries.TryGetValue (logf, out entry)) {
253
255
                                        entry = new ChangeLogEntry ();
254
 
                                        entry.AuthorInformation = IdeApp.Workspace.GetAuthorInformation (parentItem);
 
256
                                        entry.AuthorInformation = parentItem != null ? parentItem.AuthorInformation : AuthorInformation.Default;
255
257
                                        entry.MessageStyle = ChangeLogService.GetMessageStyle (parentItem);
256
258
                                        entry.CantGenerate = cantGenerate;
257
259
                                        entry.File = logf;