Mercurial > jhg
comparison src/org/tmatesoft/hg/core/HgRepoFacade.java @ 637:4a0bab2c6da1
HgInitCommand: expose repo init functionality
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Fri, 07 Jun 2013 12:32:15 +0200 |
| parents | 72c979555cb8 |
| children | 12a4f60ea972 |
comparison
equal
deleted
inserted
replaced
| 636:ffce73efa2c2 | 637:4a0bab2c6da1 |
|---|---|
| 99 } | 99 } |
| 100 | 100 |
| 101 public SessionContext getSessionContext() { | 101 public SessionContext getSessionContext() { |
| 102 return context; | 102 return context; |
| 103 } | 103 } |
| 104 | |
| 105 /** | |
| 106 * This factory method doesn't need this facade to be initialized with a repository. | |
| 107 * @return command instance, never <code>null</code> | |
| 108 */ | |
| 109 public HgInitCommand createInitCommand() { | |
| 110 return new HgInitCommand(new HgLookup(context)); | |
| 111 } | |
| 104 | 112 |
| 105 public HgLogCommand createLogCommand() { | 113 public HgLogCommand createLogCommand() { |
| 106 return new HgLogCommand(repo/*, getCommandContext()*/); | 114 return new HgLogCommand(repo/*, getCommandContext()*/); |
| 107 } | 115 } |
| 108 | 116 |
