public ChangeSetModel LoadFrom(ChangeSetItem set) { this.Author = set.Author.FullName; this.Message = set.Message; return this; }
TreeIter AppendFileInfo (ChangeSetItem n) { Gdk.Pixbuf statusicon = VersionControlService.LoadIconForStatus(n.Status); string lstatus = VersionControlService.GetStatusLabel (n.Status); string scolor = null; string localpath = n.LocalPath.ToRelative (changeSet.BaseLocalPath); if (localpath.Length > 0 && localpath[0] == System.IO.Path.DirectorySeparatorChar) localpath = localpath.Substring(1); if (localpath == "") { localpath = "."; } // not sure if this happens bool hasComment = false; //GetCommitMessage (n.LocalPath).Length > 0; bool commit = true; //changeSet.ContainsFile (n.LocalPath); Gdk.Pixbuf fileIcon; if (n.IsDirectory) fileIcon = ImageService.GetPixbuf (MonoDevelop.Ide.Gui.Stock.ClosedFolder, Gtk.IconSize.Menu); else fileIcon = DesktopService.GetPixbufForFile (n.LocalPath, Gtk.IconSize.Menu); TreeIter it = filestore.AppendValues (statusicon, lstatus, GLib.Markup.EscapeText (localpath).Split ('\n'), commit, false, n.LocalPath.ToString (), true, hasComment, fileIcon, n.HasLocalChanges, scolor); if (!n.IsDirectory) filestore.AppendValues (it, statusicon, "", new string[0], false, true, n.LocalPath.ToString (), false, false, fileIcon, false, null); return it; }