Mercurial > hg4j
comparison src/org/tmatesoft/hg/internal/Internals.java @ 525:0be5be8d57e9
Repository checkout support, first iteration
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Fri, 11 Jan 2013 18:12:39 +0100 |
parents | bf352ce2b97f |
children | 2f9ed6bcefa2 |
comparison
equal
deleted
inserted
replaced
524:57b2c9eb3c69 | 525:0be5be8d57e9 |
---|---|
29 import java.util.List; | 29 import java.util.List; |
30 import java.util.StringTokenizer; | 30 import java.util.StringTokenizer; |
31 | 31 |
32 import org.tmatesoft.hg.core.SessionContext; | 32 import org.tmatesoft.hg.core.SessionContext; |
33 import org.tmatesoft.hg.repo.HgDataFile; | 33 import org.tmatesoft.hg.repo.HgDataFile; |
34 import org.tmatesoft.hg.repo.HgInternals; | |
34 import org.tmatesoft.hg.repo.HgRuntimeException; | 35 import org.tmatesoft.hg.repo.HgRuntimeException; |
35 import org.tmatesoft.hg.repo.HgRepoConfig.ExtensionsSection; | 36 import org.tmatesoft.hg.repo.HgRepoConfig.ExtensionsSection; |
36 import org.tmatesoft.hg.repo.HgRepository; | 37 import org.tmatesoft.hg.repo.HgRepository; |
37 import org.tmatesoft.hg.util.PathRewrite; | 38 import org.tmatesoft.hg.util.PathRewrite; |
38 | 39 |
408 | 409 |
409 public boolean shallCacheRevlogs() { | 410 public boolean shallCacheRevlogs() { |
410 return shallCacheRevlogsInRepo; | 411 return shallCacheRevlogsInRepo; |
411 } | 412 } |
412 | 413 |
414 public static Internals getInstance(HgRepository repo) { | |
415 return HgInternals.getImplementationRepo(repo); | |
416 } | |
417 | |
413 public static <T> CharSequence join(Iterable<T> col, CharSequence separator) { | 418 public static <T> CharSequence join(Iterable<T> col, CharSequence separator) { |
414 if (col == null) { | 419 if (col == null) { |
415 return String.valueOf(col); | 420 return String.valueOf(col); |
416 } | 421 } |
417 Iterator<T> it = col.iterator(); | 422 Iterator<T> it = col.iterator(); |