Mercurial > hg4j
diff src/org/tmatesoft/hg/internal/RequiresFile.java @ 170:71ddbf8603e8
Initial clone: populate given directory from a bundle. Everything but remote server access is there, albeit prototype code style
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Wed, 23 Mar 2011 20:46:00 +0100 |
parents | a3a2e5deb320 |
children | ff4fdbab4e2d |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/RequiresFile.java Wed Mar 23 14:13:11 2011 +0100 +++ b/src/org/tmatesoft/hg/internal/RequiresFile.java Wed Mar 23 20:46:00 2011 +0100 @@ -53,9 +53,9 @@ dotencode |= "dotencode".equals(line); } int flags = 0; - flags += store ? 1 : 0; - flags += fncache ? 2 : 0; - flags += dotencode ? 4 : 0; + flags += store ? STORE : 0; + flags += fncache ? FNCACHE : 0; + flags += dotencode ? DOTENCODE : 0; repoImpl.setStorageConfig(revlogv1 ? 1 : 0, flags); } catch (IOException ex) { ex.printStackTrace(); // FIXME log