void (@Nullable TimedVcsCommit logCommit, MqPatchDetails details) { if (logCommit != null) { List<Hash> parents = logCommit.getParents(); assertEquals(logCommit.getId().asString(), details.getNodeId()); assertEquals(!ContainerUtil.isEmpty(parents) ? parents.get(0).asString() : null, details.getParent()); assertEquals(new Date(logCommit.getTimestamp()), details.getDate()); assertEquals(BRANCH, details.getBranch()); } assertEquals(MESSAGE, details.getMessage()); assertEquals(myHgRepository.getRepositoryConfig().getNamedConfig("ui", "username"), details.getUser()); }