Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/CommitFacility.java @ 654:12a4f60ea972
1) Console push tool. 2) Pass class to blame into FileUtils
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 03 Jul 2013 15:11:40 +0200 |
parents | cd77bf51b562 |
children | 4fd317a2fecf |
comparison
equal
deleted
inserted
replaced
653:629a7370554c | 654:12a4f60ea972 |
---|---|
256 w.write(message == null ? new String() : message); | 256 w.write(message == null ? new String() : message); |
257 w.flush(); | 257 w.flush(); |
258 } catch (IOException ex) { | 258 } catch (IOException ex) { |
259 throw new HgIOException("Failed to save last commit message", ex, lastMessage); | 259 throw new HgIOException("Failed to save last commit message", ex, lastMessage); |
260 } finally { | 260 } finally { |
261 new FileUtils(repo.getLog()).closeQuietly(w, lastMessage); | 261 new FileUtils(repo.getLog(), this).closeQuietly(w, lastMessage); |
262 } | 262 } |
263 } | 263 } |
264 /* | 264 /* |
265 private Pair<Integer, Integer> getManifestParents() { | 265 private Pair<Integer, Integer> getManifestParents() { |
266 return new Pair<Integer, Integer>(extractManifestRevisionIndex(p1Commit), extractManifestRevisionIndex(p2Commit)); | 266 return new Pair<Integer, Integer>(extractManifestRevisionIndex(p1Commit), extractManifestRevisionIndex(p2Commit)); |