[hg] fix users in full details

This commit is contained in:
Julia Beliaeva
2016-03-26 19:55:41 +03:00
parent f95b01a22e
commit 03df92ae40
2 changed files with 13 additions and 4 deletions
@@ -69,10 +69,19 @@ public class HgRevisionNumber implements VcsRevisionNumber {
@NotNull String authorInfo,
@NotNull String commitMessage,
@NotNull List<HgRevisionNumber> parents) {
this(revision, changeset, HgUtil.parseUserNameAndEmail(authorInfo).getFirst(), HgUtil.parseUserNameAndEmail(authorInfo).getSecond(),
commitMessage, parents);
}
public HgRevisionNumber(@NotNull String revision,
@NotNull String changeset,
@NotNull String author,
@NotNull String email,
@NotNull String commitMessage,
@NotNull List<HgRevisionNumber> parents) {
this.commitMessage = commitMessage;
Couple<String> authorArgs = HgUtil.parseUserNameAndEmail(authorInfo);
this.author = authorArgs.getFirst();
this.email = authorArgs.getSecond();
this.author = author;
this.email = email;
this.parents = parents;
this.revision = revision.trim();
this.changeset = changeset.trim();
@@ -53,7 +53,7 @@ public class HgFileRevisionLogParser extends HgBaseLogParser<HgFileRevision> {
int numAttributes = attributes.size();
String commitMessage = parseAdditionalStringAttribute(attributes, MESSAGE_INDEX);
String branchName = parseAdditionalStringAttribute(attributes, BRANCH_INDEX);
final HgRevisionNumber vcsRevisionNumber = new HgRevisionNumber(rev, changeset, author, commitMessage, parents);
final HgRevisionNumber vcsRevisionNumber = new HgRevisionNumber(rev, changeset, author, email, commitMessage, parents);
Set<String> filesAdded = Collections.emptySet();
Set<String> filesModified = Collections.emptySet();