Mercurial > hg4j
diff src/org/tmatesoft/hg/repo/HgDataFile.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 | 868b2ffdcd5c |
children | b4948b159ab1 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgDataFile.java Sat May 18 21:55:31 2013 +0200 +++ b/src/org/tmatesoft/hg/repo/HgDataFile.java Sat May 18 22:23:57 2013 +0200 @@ -75,16 +75,11 @@ path = filePath; } - /*package-local*/HgDataFile(HgRepository hgRepo, Path filePath) { - super(hgRepo); - path = filePath; - } - // exists is not the best name possible. now it means no file with such name was ever known to the repo. // it might be confused with files existed before but lately removed. TODO HgFileNode.exists makes more sense. // or HgDataFile.known() public boolean exists() { - return content != null; // XXX need better impl + return content.exists(); } /**