Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/Cset.java @ 65:e21df6259f83
Log commandline sample updated to use LogCommand
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 21 Jan 2011 06:17:56 +0100 |
parents | 19e9e220bf68 |
children | 6f1b88693d48 |
comparison
equal
deleted
inserted
replaced
64:19e9e220bf68 | 65:e21df6259f83 |
---|---|
58 /*package-local*/ | 58 /*package-local*/ |
59 void init(int localRevNumber, Nodeid nid, Changeset rawChangeset) { | 59 void init(int localRevNumber, Nodeid nid, Changeset rawChangeset) { |
60 revNumber = localRevNumber; | 60 revNumber = localRevNumber; |
61 nodeid = nid; | 61 nodeid = nid; |
62 changeset = rawChangeset; | 62 changeset = rawChangeset; |
63 modifiedFiles = addedFiles = null; | |
64 deletedFiles = null; | |
63 } | 65 } |
64 | 66 public int getRevision() { |
67 return revNumber; | |
68 } | |
69 public Nodeid getNodeid() { | |
70 return nodeid; | |
71 } | |
65 public String getUser() { | 72 public String getUser() { |
66 return changeset.user(); | 73 return changeset.user(); |
67 } | 74 } |
68 public String getComment() { | 75 public String getComment() { |
69 return changeset.comment(); | 76 return changeset.comment(); |
71 public String getBranch() { | 78 public String getBranch() { |
72 return changeset.branch(); | 79 return changeset.branch(); |
73 } | 80 } |
74 public String getDate() { | 81 public String getDate() { |
75 return changeset.dateString(); | 82 return changeset.dateString(); |
83 } | |
84 public Nodeid getManifestRevision() { | |
85 return changeset.manifest(); | |
76 } | 86 } |
77 | 87 |
78 public List<Path> getAffectedFiles() { | 88 public List<Path> getAffectedFiles() { |
79 ArrayList<Path> rv = new ArrayList<Path>(changeset.files().size()); | 89 ArrayList<Path> rv = new ArrayList<Path>(changeset.files().size()); |
80 for (String name : changeset.files()) { | 90 for (String name : changeset.files()) { |