mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-06 20:30:52 +01:00
Read last commit date for hg branches
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user