public HgBundle loadBundle(File location) throws HgRepositoryNotFoundException {
if (location == null || !location.canRead()) {
throw new HgRepositoryNotFoundException(String.format("Can't read file %s", location)).setLocation(String.valueOf(location));
}
return new HgBundle(getSessionContext(), new DataAccessProvider(getSessionContext()), location).link();
}