diff src/org/tmatesoft/hg/repo/HgRepository.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 272ecffccc8a
children 6526d8adbc0f
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgRepository.java	Sat May 18 21:55:31 2013 +0200
+++ b/src/org/tmatesoft/hg/repo/HgRepository.java	Sat May 18 22:23:57 2013 +0200
@@ -242,9 +242,7 @@
 
 	public HgDataFile getFileNode(Path path) {
 		RevlogStream content = impl.resolveStoreFile(path);
-		if (content == null) {
-			return new HgDataFile(this, path);
-		}
+		assert content != null;
 		return new HgDataFile(this, path, content);
 	}