package org.jenkinsci.plugins.p4.changes; import com.perforce.p4java.core.file.FileAction; import com.perforce.p4java.core.file.IFileSpec; import hudson.scm.EditType; import hudson.scm.ChangeLogSet.AffectedFile; public class P4AffectedFile implements AffectedFile { private final IFileSpec item; public P4AffectedFile(IFileSpec item) { this.item = item; } @Override public String getPath() { return item.getDepotPathString(); } @Override public EditType getEditType() { FileAction action = item.getAction(); switch (action) { case ADD: case MOVE_ADD: return EditType.ADD; case EDIT: return EditType.EDIT; case DELETE: case MOVE_DELETE: return EditType.DELETE; default: return EditType.EDIT; } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 22000 | Paul Allen |
Use graph p4 describe to fetch committed files. Update P4Ds |
||
#2 | 21990 | Paul Allen |
Reporting Graph changes. Update Browser and Jelly code to use String and not URL for url in Data Binding to Jelly. Use P4AffectedFile object for XML storage and not IFileSpec to allow Graph use. |
||
#1 | 21940 | Paul Allen | Branching using p4-jenkins | ||
//guest/perforce_software/p4jenkins/main/src/main/java/org/jenkinsci/plugins/p4/changes/P4AffectedFile.java | |||||
#1 | 20207 | Paul Allen |
Added implementation for getAffectedFiles() #review-20131 |