comparison src/org/tmatesoft/hg/repo/HgLookup.java @ 357:dfb8405d996f

Clean debug stacktraces
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 06 Dec 2011 19:47:01 +0100
parents 981f9f50bb6c
children 9c9c442b5f2e
comparison
equal deleted inserted replaced
356:91d75e1bac9f 357:dfb8405d996f
81 81
82 public HgBundle loadBundle(File location) throws HgInvalidFileException { 82 public HgBundle loadBundle(File location) throws HgInvalidFileException {
83 if (location == null || !location.canRead()) { 83 if (location == null || !location.canRead()) {
84 throw new HgInvalidFileException(String.format("Can't read file %s", location == null ? null : location.getPath()), null, location); 84 throw new HgInvalidFileException(String.format("Can't read file %s", location == null ? null : location.getPath()), null, location);
85 } 85 }
86 return new HgBundle(new DataAccessProvider(getContext()), location).link(); 86 return new HgBundle(getContext(), new DataAccessProvider(getContext()), location).link();
87 } 87 }
88 88
89 /** 89 /**
90 * Try to instantiate remote server. 90 * Try to instantiate remote server.
91 * @param key either URL or a key from configuration file that points to remote server 91 * @param key either URL or a key from configuration file that points to remote server