Package com.gitblit.models

Examples of com.gitblit.models.DailyLogEntry.updateRef()


                    dailydigests.put(dateStr, new DailyLogEntry(repositoryName, date));
                }
                DailyLogEntry digest = dailydigests.get(dateStr);
                if (commit.getParentCount() == 0) {
                  linearParent = null;
                  digest.updateRef(branch, ReceiveCommand.Type.CREATE);
                } else {
                  linearParent = commit.getParents()[0].getId().getName();
                  digest.updateRef(branch, ReceiveCommand.Type.UPDATE, linearParent, commit.getName());
                }
View Full Code Here


                if (commit.getParentCount() == 0) {
                  linearParent = null;
                  digest.updateRef(branch, ReceiveCommand.Type.CREATE);
                } else {
                  linearParent = commit.getParents()[0].getId().getName();
                  digest.updateRef(branch, ReceiveCommand.Type.UPDATE, linearParent, commit.getName());
                }

                RepositoryCommit repoCommit = digest.addCommit(commit);
                if (repoCommit != null) {
                  List<RefModel> matchedRefs = allRefs.get(commit.getId());
View Full Code Here

                    refMap.put(ref, new ArrayList<DailyLogEntry>());
                }

                // construct new ref-specific log entry
                DailyLogEntry refEntry = new DailyLogEntry(entry.repository, entry.date, entry.user);
                refEntry.updateRef(ref, entry.getChangeType(ref), entry.getOldId(ref), entry.getNewId(ref));
                refEntry.addCommits(entry.getCommits(ref));
                refMap.get(ref).add(refEntry);
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.