mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-02 03:25:56 +01:00
added parent to added parent id to svn changesets
This commit is contained in:
@@ -119,10 +119,17 @@ public class SvnUtil
|
||||
@SuppressWarnings("unchecked")
|
||||
public static Changeset createChangeset(SVNLogEntry entry)
|
||||
{
|
||||
Changeset changeset = new Changeset(String.valueOf(entry.getRevision()),
|
||||
long revision = entry.getRevision();
|
||||
Changeset changeset = new Changeset(String.valueOf(revision),
|
||||
entry.getDate().getTime(),
|
||||
Person.toPerson(entry.getAuthor()),
|
||||
entry.getMessage());
|
||||
|
||||
if (revision > 0)
|
||||
{
|
||||
changeset.getParents().add(String.valueOf(revision - 1));
|
||||
}
|
||||
|
||||
Map<String, SVNLogEntryPath> changeMap = entry.getChangedPaths();
|
||||
|
||||
if (Util.isNotEmpty(changeMap))
|
||||
|
||||
Reference in New Issue
Block a user