Mercurial > jhg
diff src/org/tmatesoft/hg/util/RegularFileInfo.java @ 425:48f993aa2f41
FIXMEs: exceptions, javadoc
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 28 Mar 2012 18:39:29 +0200 |
parents | 7f27122011c3 |
children | 909306e412e2 |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/util/RegularFileInfo.java Wed Mar 28 15:42:15 2012 +0200 +++ b/src/org/tmatesoft/hg/util/RegularFileInfo.java Wed Mar 28 18:39:29 2012 +0200 @@ -24,6 +24,7 @@ import java.nio.channels.ClosedChannelException; import java.nio.channels.ReadableByteChannel; +import org.tmatesoft.hg.core.SessionContext; import org.tmatesoft.hg.internal.StreamLogFacility; /** @@ -36,14 +37,14 @@ private final RegularFileStats fileFlagsHelper; // null if both supportsLink and supportExec are false private File file; - public RegularFileInfo() { - this(false, false); + public RegularFileInfo(SessionContext ctx) { + this(ctx, false, false); } - public RegularFileInfo(boolean supportExecFlag, boolean supportSymlink) { + public RegularFileInfo(SessionContext ctx, boolean supportExecFlag, boolean supportSymlink) { supportsLink = supportSymlink; supportsExec = supportExecFlag; if (supportSymlink || supportExecFlag) { - fileFlagsHelper = new RegularFileStats(); + fileFlagsHelper = new RegularFileStats(ctx); } else { fileFlagsHelper = null; }