return changesetId for git & hg

This commit is contained in:
Eduard Heimbuch
2019-10-24 11:57:16 +02:00
parent fb0eb329e5
commit 5c7bd90f7a
2 changed files with 2 additions and 5 deletions

View File

@@ -78,7 +78,7 @@ public class HgModifyCommand implements ModifyCommand {
}
CommitCommand.on(workingRepository).user(String.format("%s <%s>", request.getAuthor().getName(), request.getAuthor().getMail())).message(request.getCommitMessage()).execute();
List<Changeset> execute = pullModifyChangesToCentralRepository(request, workingCopy);
return execute.get(0).getBranch();
return execute.get(0).getNode();
} catch (ExecutionException e) {
throwInternalRepositoryException("could not execute command on repository", e);
return null;