comparison 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
comparison
equal deleted inserted replaced
169:8c8e3f372fa1 170:71ddbf8603e8
51 store |= "store".equals(line); 51 store |= "store".equals(line);
52 fncache |= "fncache".equals(line); 52 fncache |= "fncache".equals(line);
53 dotencode |= "dotencode".equals(line); 53 dotencode |= "dotencode".equals(line);
54 } 54 }
55 int flags = 0; 55 int flags = 0;
56 flags += store ? 1 : 0; 56 flags += store ? STORE : 0;
57 flags += fncache ? 2 : 0; 57 flags += fncache ? FNCACHE : 0;
58 flags += dotencode ? 4 : 0; 58 flags += dotencode ? DOTENCODE : 0;
59 repoImpl.setStorageConfig(revlogv1 ? 1 : 0, flags); 59 repoImpl.setStorageConfig(revlogv1 ? 1 : 0, flags);
60 } catch (IOException ex) { 60 } catch (IOException ex) {
61 ex.printStackTrace(); // FIXME log 61 ex.printStackTrace(); // FIXME log
62 } 62 }
63 } 63 }