comparison src/org/tmatesoft/hg/internal/WorkingDirFileWriter.java @ 572:becd2a1310a2

Report file object in case of error to be helpful as much as possible
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Fri, 12 Apr 2013 18:30:55 +0200
parents 2f9ed6bcefa2
children bd5926e24aa3
comparison
equal deleted inserted replaced
571:e4ee4bf4c7d0 572:becd2a1310a2
43 43
44 public WorkingDirFileWriter(Internals internalRepo) { 44 public WorkingDirFileWriter(Internals internalRepo) {
45 hgRepo = internalRepo; 45 hgRepo = internalRepo;
46 } 46 }
47 47
48 /**
49 * Information purposes only, to find out trouble location if {@link #processFile(HgDataFile, int)} fails
50 */
51 public File getDestinationFile() {
52 return dest;
53 }
54
48 public void processFile(HgDataFile df, int fileRevIndex) throws IOException { 55 public void processFile(HgDataFile df, int fileRevIndex) throws IOException {
49 try { 56 try {
50 prepare(df.getPath()); 57 prepare(df.getPath());
51 df.contentWithFilters(fileRevIndex, this); 58 df.contentWithFilters(fileRevIndex, this);
52 } catch (CancelledException ex) { 59 } catch (CancelledException ex) {