Read last commit date for hg branches

This commit is contained in:
René Pfeuffer
2020-11-23 15:21:59 +01:00
parent f0f7ddc444
commit 4d4f89dc7e
2 changed files with 5 additions and 4 deletions

View File

@@ -79,10 +79,11 @@ public class HgBranchesCommand extends AbstractCommand
node = changeset.getNode();
}
long lastCommitDate = changeset.getTimestamp().getDate().getTime();
if (DEFAULT_BRANCH_NAME.equals(hgBranch.getName())) {
return Branch.defaultBranch(hgBranch.getName(), node);
return Branch.defaultBranch(hgBranch.getName(), node, lastCommitDate);
} else {
return Branch.normalBranch(hgBranch.getName(), node);
return Branch.normalBranch(hgBranch.getName(), node, lastCommitDate);
}
}
});