Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/Main.java @ 252:a6d19adc2636
HgRepository.getWorkingCopyBranchName() to retrieve branch associated with working directory
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Mon, 15 Aug 2011 18:51:41 +0200 |
| parents | 4c3b9f679412 |
| children | 1874d11054e5 |
comparison
equal
deleted
inserted
replaced
| 251:8c951645bea0 | 252:a6d19adc2636 |
|---|---|
| 73 public static void main(String[] args) throws Exception { | 73 public static void main(String[] args) throws Exception { |
| 74 Main m = new Main(args); | 74 Main m = new Main(args); |
| 75 // m.testRevisionMap(); | 75 // m.testRevisionMap(); |
| 76 // m.testSubrepos(); | 76 // m.testSubrepos(); |
| 77 // m.testReadWorkingCopy(); | 77 // m.testReadWorkingCopy(); |
| 78 // m.testParents(); | 78 m.testParents(); |
| 79 // m.testEffectiveFileLog(); | 79 // m.testEffectiveFileLog(); |
| 80 m.testCatAtCsetRevision(); | 80 // m.testCatAtCsetRevision(); |
| 81 // m.testMergeState(); | 81 // m.testMergeState(); |
| 82 // m.testFileStatus(); | 82 // m.testFileStatus(); |
| 83 // m.dumpBranches(); | 83 // m.dumpBranches(); |
| 84 // m.inflaterLengthException(); | 84 // m.inflaterLengthException(); |
| 85 // m.dumpIgnored(); | 85 // m.dumpIgnored(); |
| 171 } | 171 } |
| 172 if (wcParents.hasSecond()) { | 172 if (wcParents.hasSecond()) { |
| 173 int x = clog.getLocalRevision(wcParents.second()); | 173 int x = clog.getLocalRevision(wcParents.second()); |
| 174 cmd.range(x, x).execute(dump); | 174 cmd.range(x, x).execute(dump); |
| 175 } | 175 } |
| 176 System.out.println("Branch:" + hgRepo.getWorkingCopyBranchName()); | |
| 176 } | 177 } |
| 177 | 178 |
| 178 /* | 179 /* |
| 179 * -R \temp\hg\hg4j-50 src/org/tmatesoft/hg/internal/RevlogStream.java | 180 * -R \temp\hg\hg4j-50 src/org/tmatesoft/hg/internal/RevlogStream.java |
| 180 * | 181 * |
