package com.perforce.cvs.process; import java.util.ArrayList; import java.util.List; import com.perforce.cvs.RevisionEntry; public class CvsChange { private final long change; private ArrayList<RevisionEntry> list = new ArrayList<RevisionEntry>(); public CvsChange(long change) { this.change = change; } public void addEntry(RevisionEntry rev) { list.add(rev); } public boolean isPending(RevisionEntry rev) { for (RevisionEntry l : list) { String listPath = l.getPath(); String revPath = rev.getPath(); if (listPath.equalsIgnoreCase(revPath)) { return true; } } return false; } public boolean isEmpty() { return list.isEmpty(); } public long getChange() { return change; } public List<RevisionEntry> getRevisions() { return list; } public RevisionEntry getChangeInfo() { if (list.isEmpty()) { return null; } return list.get(0); } public String toString() { StringBuffer sb = new StringBuffer(); sb.append("Change: " + change); sb.append(" [" + list.size() + "]"); return sb.toString(); } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 13876 | Paul Allen | Rename/move file(s) | ||
//guest/paul_allen/p4convert-maven/src/com/perforce/cvs/process/CvsChange.java | |||||
#1 | 13873 | Paul Allen | Branching using p4convert-maven | ||
//guest/perforce_software/p4convert/src/com/perforce/cvs/process/CvsChange.java | |||||
#3 | 12492 | Paul Allen |
CVS: Do not add empty CVS changes to the process list. Fix for: Caught exception on exit java.lang.NullPointerException at com.perforce.common.process.ChangeInfo.<init>(ChangeInfo.java:37) at com.perforce.cvs.process.CvsProcessChange.processChange(CvsProcessChange.java:94) at com.perforce.common.process.ProcessChange.runSingle(ProcessChange.java:90) at com.perforce.common.process.ProcessChange.call(ProcessChange.java:53) at com.perforce.common.process.ProcessChange.call(ProcessChange.java:20) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caught EXIT shutting down ... |
||
#2 | 12405 | Paul Allen |
CVS: Save change list data to a JSON formatted file 'changes.json'. (Work-In-Progress) - need to add load option and resume flags |
||
#1 | 12397 | Paul Allen |
CVS: Separate sort behaviour from Perforce changelist processing. - In preperation for saving CVS changes list state. - Updated test case 045 back (case rename in two changes) |