Hash (@NotNull HgRepository repository) { final String currentRevision = repository.getCurrentRevision(); assert currentRevision != null : "Compare With Branch couldn't be performed for newly created repository"; return HashImpl.build(repository.getCurrentRevision()); }