Mercurial > jhg
comparison src/com/tmate/hgkit/console/Status.java @ 56:576d6e8a09f6
Analog of 'hg status --change' command
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 17 Jan 2011 05:15:13 +0100 |
parents | 05829a70b30b |
children | 8b0d6f1bd6b4 |
comparison
equal
deleted
inserted
replaced
55:05829a70b30b | 56:576d6e8a09f6 |
---|---|
43 System.out.println("\n\nSame, but sorted in the way hg status does:"); | 43 System.out.println("\n\nSame, but sorted in the way hg status does:"); |
44 StatusCollector.Record r = sc.status(r1, r2); | 44 StatusCollector.Record r = sc.status(r1, r2); |
45 sortAndPrint('M', r.getModified()); | 45 sortAndPrint('M', r.getModified()); |
46 sortAndPrint('A', r.getAdded()); | 46 sortAndPrint('A', r.getAdded()); |
47 sortAndPrint('R', r.getRemoved()); | 47 sortAndPrint('R', r.getRemoved()); |
48 // | |
49 System.out.println("\n\nTry hg status --change <rev>:"); | |
50 sc.change(0, dump); | |
48 // System.out.println("\nStatus against working dir:"); | 51 // System.out.println("\nStatus against working dir:"); |
49 // ((LocalHgRepo) hgRepo).statusLocal(TIP, dump); | 52 // ((LocalHgRepo) hgRepo).statusLocal(TIP, dump); |
50 // System.out.println(); | 53 // System.out.println(); |
51 // System.out.printf("Manifest of the revision %d:\n", r2); | 54 // System.out.printf("Manifest of the revision %d:\n", r2); |
52 // hgRepo.getManifest().walk(r2, r2, new Manifest.Dump()); | 55 // hgRepo.getManifest().walk(r2, r2, new Manifest.Dump()); |