Mercurial > hg4j
comparison cmdline/org/tmatesoft/hg/console/Bundle.java @ 74:6f1b88693d48
Complete refactoring to org.tmatesoft
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Mon, 24 Jan 2011 03:14:45 +0100 |
| parents | src/com/tmate/hgkit/console/Bundle.java@e45e75e22523 |
| children | a3a2e5deb320 |
comparison
equal
deleted
inserted
replaced
| 73:0d279bcc4442 | 74:6f1b88693d48 |
|---|---|
| 1 /* | |
| 2 * Copyright (c) 2011 TMate Software Ltd | |
| 3 * | |
| 4 * This program is free software; you can redistribute it and/or modify | |
| 5 * it under the terms of the GNU General Public License as published by | |
| 6 * the Free Software Foundation; version 2 of the License. | |
| 7 * | |
| 8 * This program is distributed in the hope that it will be useful, | |
| 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 11 * GNU General Public License for more details. | |
| 12 * | |
| 13 * For information on how to redistribute this software under | |
| 14 * the terms of a license other than GNU General Public License | |
| 15 * contact TMate Software at support@svnkit.com | |
| 16 */ | |
| 17 package org.tmatesoft.hg.console; | |
| 18 | |
| 19 import java.io.File; | |
| 20 | |
| 21 import org.tmatesoft.hg.internal.DataAccessProvider; | |
| 22 import org.tmatesoft.hg.repo.HgBundle; | |
| 23 import org.tmatesoft.hg.repo.HgRepository; | |
| 24 | |
| 25 | |
| 26 /** | |
| 27 * WORK IN PROGRESS, DO NOT USE | |
| 28 * | |
| 29 * @author Artem Tikhomirov | |
| 30 * @author TMate Software Ltd. | |
| 31 */ | |
| 32 public class Bundle { | |
| 33 | |
| 34 public static void main(String[] args) throws Exception { | |
| 35 Options cmdLineOpts = Options.parse(args); | |
| 36 HgRepository hgRepo = cmdLineOpts.findRepository(); | |
| 37 if (hgRepo.isInvalid()) { | |
| 38 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); | |
| 39 return; | |
| 40 } | |
| 41 File bundleFile = new File("/temp/hg/hg-bundle-a78c980749e3.tmp"); | |
| 42 DataAccessProvider dap = new DataAccessProvider(); | |
| 43 HgBundle hgBundle = new HgBundle(dap, bundleFile); | |
| 44 // hgBundle.dump(); | |
| 45 hgBundle.changes(hgRepo); | |
| 46 } | |
| 47 } |
