comparison src/org/tmatesoft/hg/internal/Transaction.java @ 621:99ad1e3a4e4d

RevlogStream: be aware of existence (not HgDataFile), facilitate use of an added HgDataFile over a commit; Rollback: be more sensitive about file changes (file size is not enough: write/rollback leaves it intact); tests
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sat, 18 May 2013 22:23:57 +0200
parents 65c01508f002
children
comparison
equal deleted inserted replaced
620:272ecffccc8a 621:99ad1e3a4e4d
42 */ 42 */
43 public abstract class Transaction { 43 public abstract class Transaction {
44 /** 44 /**
45 * Record the file is going to be modified during this transaction, obtain actual 45 * Record the file is going to be modified during this transaction, obtain actual
46 * destination to write to. 46 * destination to write to.
47 * The file to be modified not necessarily exists, might be just a name of an added file
47 */ 48 */
48 public abstract File prepare(File f) throws HgIOException; 49 public abstract File prepare(File f) throws HgIOException;
49 /** 50 /**
50 * overwrites backup if exists, backup is kept after successful {@link #commit()} 51 * overwrites backup if exists, backup is kept after successful {@link #commit()}
51 */ 52 */