Ejemplo n.º 1
0
        public void Update(Repository repo)
        {
            m_repo = repo;
            var list = new PlotCommitList();

            m_revwalk = new PlotWalk(repo);
            m_revwalk.markStart(((GitSharp.Core.Repository)repo).getAllRefsByPeeledObjectId().Keys.Select(id => m_revwalk.parseCommit(id)));
            list.Source(m_revwalk);
            list.fillTo(1000);
            m_plot_renderer.Update(list);
        }
Ejemplo n.º 2
0
 public void Update(Repository repo)
 {
     m_repo = repo;
     var list = new PlotCommitList();
     m_revwalk = new PlotWalk(repo);
     m_revwalk.markStart(((Core.Repository)repo).getAllRefsByPeeledObjectId().Keys.Select(id => m_revwalk.parseCommit(id)));
     list.Source(m_revwalk);
     list.fillTo(1000);
     m_plot_renderer.Update(list);
     //var rw = new RevWalk(repo);
     //rw.RevSortStrategy.Add(RevSort.Strategy.COMMIT_TIME_DESC);
     //rw.RevSortStrategy.Add(RevSort.Strategy.TOPO);
     //rw.markStart(((Core.Repository)repo).getAllRefsByPeeledObjectId().Keys.Select(id => rw.parseCommit(id)));
     //m_renderer.Update(rw);
 }
Ejemplo n.º 3
0
        public void Update(Repository repo)
        {
            m_repo = repo;
            var list = new PlotCommitList();

            m_revwalk = new PlotWalk(repo);
            m_revwalk.markStart(((Core.Repository)repo).getAllRefsByPeeledObjectId().Keys.Select(id => m_revwalk.parseCommit(id)));
            list.Source(m_revwalk);
            list.fillTo(1000);
            m_plot_renderer.Update(list);
            //var rw = new RevWalk(repo);
            //rw.RevSortStrategy.Add(RevSort.Strategy.COMMIT_TIME_DESC);
            //rw.RevSortStrategy.Add(RevSort.Strategy.TOPO);
            //rw.markStart(((Core.Repository)repo).getAllRefsByPeeledObjectId().Keys.Select(id => rw.parseCommit(id)));
            //m_renderer.Update(rw);
        }
        public void Update(Repository repo)
        {
            m_repo = repo;
            var list = new PlotCommitList();

            m_revwalk = new PlotWalk(repo);
            // if id is not commit, parseCommit() will throw [This should probably be handled better]
            //var CommitIds = ((Core.Repository)repo).getAllRefsByPeeledObjectId().Keys.Where(IsCommit);
            //m_revwalk.markStart(CommitIds.Select(id => m_revwalk.parseCommit(id)));
            m_revwalk.markStart(((Core.Repository)repo).getAllRefsByPeeledObjectId().Keys.Select(id => m_revwalk.parseCommit(id)));
            list.Source(m_revwalk);
            list.fillTo(1000);
            // link the commits
            this.lstCommits.ItemsSource = list;
            // link the jump lists
            try { this.lstBranches.ItemsSource = m_repo.Branches; }
            catch { this.lstBranches.ItemsSource = null; }
            try { this.lstRemotes.ItemsSource = m_repo.RemoteBranches; }
            catch { this.lstRemotes.ItemsSource = null; }
            try { this.lstTags.ItemsSource = m_repo.Tags; }
            catch { this.lstTags.ItemsSource = null; }
            UpdateLegend();                 // update refs legend
            this.lstCommits.UpdateLayout(); //fixes issue w/ ScrollIntoView when changing source
        }