VcsRevisionNumber () { if (myCommittedPath == null) { return null; } if (myCommittedPath.isNonLocal()) { // technically, it does not make sense, since there's no "current" revision for non-local history (if look how it's used) // but ok, lets keep it for now return new SvnRevisionNumber(Revision.HEAD); } return getCurrentCommittedRevision(myVcs, new File(myCommittedPath.getPath())); }