Mercurial > jhg
comparison cmdline/org/tmatesoft/hg/console/Status.java @ 688:1499139a600a
Defect: copies are not reported with default settings (not even as added!). Parameter needCopies removed as there seems to be no reason to condition copies for hi-level api (HgStatus.isCopy() is way down the road)
| author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
|---|---|
| date | Sat, 27 Jul 2013 20:15:37 +0200 |
| parents | 909306e412e2 |
| children |
comparison
equal
deleted
inserted
replaced
| 687:9859fcea475d | 688:1499139a600a |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010-2011 TMate Software Ltd | 2 * Copyright (c) 2010-2013 TMate Software Ltd |
| 3 * | 3 * |
| 4 * This program is free software; you can redistribute it and/or modify | 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 | 5 * it under the terms of the GNU General Public License as published by |
| 6 * the Free Software Foundation; version 2 of the License. | 6 * the Free Software Foundation; version 2 of the License. |
| 7 * | 7 * |
| 42 * @author TMate Software Ltd. | 42 * @author TMate Software Ltd. |
| 43 */ | 43 */ |
| 44 public class Status { | 44 public class Status { |
| 45 | 45 |
| 46 public static void main(String[] args) throws Exception { | 46 public static void main(String[] args) throws Exception { |
| 47 final Set<String> flagOpts = asSet("-A", "-all", "-m", "--modified", "-a", "--added", "-r", "--removed", | 47 final Set<String> flagOpts = asSet("-A", "--all", "-m", "--modified", "-a", "--added", "-r", "--removed", |
| 48 "--d", "--deleted", "-u", "--unknown", "-c", "--clean", "-i", "--ignored", | 48 "--d", "--deleted", "-u", "--unknown", "-c", "--clean", "-i", "--ignored", |
| 49 "-n", "--no-status", "-C", "--copies"); | 49 "-n", "--no-status", "-C", "--copies"); |
| 50 Options cmdLineOpts = Options.parse(args, flagOpts); | 50 Options cmdLineOpts = Options.parse(args, flagOpts); |
| 51 HgRepoFacade hgRepo = new HgRepoFacade(); | 51 HgRepoFacade hgRepo = new HgRepoFacade(); |
| 52 if (!hgRepo.init(cmdLineOpts.findRepository())) { | 52 if (!hgRepo.init(cmdLineOpts.findRepository())) { |
