Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgRepoFacade.java @ 571:e4ee4bf4c7d0
Let session context control creation of Path instances
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 11 Apr 2013 16:27:06 +0200 |
parents | 32453f30de07 |
children | 73c20c648c1f |
comparison
equal
deleted
inserted
replaced
570:36853bb80a35 | 571:e4ee4bf4c7d0 |
---|---|
34 * </pre> | 34 * </pre> |
35 * | 35 * |
36 * @author Artem Tikhomirov | 36 * @author Artem Tikhomirov |
37 * @author TMate Software Ltd. | 37 * @author TMate Software Ltd. |
38 */ | 38 */ |
39 public class HgRepoFacade { | 39 public class HgRepoFacade implements SessionContext.Source { |
40 private HgRepository repo; | 40 private HgRepository repo; |
41 private final SessionContext context; | 41 private final SessionContext context; |
42 | 42 |
43 public HgRepoFacade() { | 43 public HgRepoFacade() { |
44 this(new BasicSessionContext(null)); | 44 this(new BasicSessionContext(null)); |
95 if (repo == null) { | 95 if (repo == null) { |
96 throw new IllegalStateException("Call any of #init*() methods first first"); | 96 throw new IllegalStateException("Call any of #init*() methods first first"); |
97 } | 97 } |
98 return repo; | 98 return repo; |
99 } | 99 } |
100 | |
101 public SessionContext getSessionContext() { | |
102 return context; | |
103 } | |
100 | 104 |
101 public HgLogCommand createLogCommand() { | 105 public HgLogCommand createLogCommand() { |
102 return new HgLogCommand(repo/*, getCommandContext()*/); | 106 return new HgLogCommand(repo/*, getCommandContext()*/); |
103 } | 107 } |
104 | 108 |