comparison cmdline/org/tmatesoft/hg/console/Main.java @ 275:6d1804fe0ed7

Issue 10: Report file content length with respect of metadata. Respect dirstate parents for WC's status. Exceptions to keep useful attributes of the location
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 25 Aug 2011 21:35:03 +0200
parents c6450b0b1fd5
children 81e9a3c9bafe
comparison
equal deleted inserted replaced
274:9fb50c04f03c 275:6d1804fe0ed7
23 import java.util.Collections; 23 import java.util.Collections;
24 import java.util.List; 24 import java.util.List;
25 import java.util.Map; 25 import java.util.Map;
26 26
27 import org.junit.Assert; 27 import org.junit.Assert;
28 import org.tmatesoft.hg.core.HgDataStreamException;
28 import org.tmatesoft.hg.core.HgLogCommand; 29 import org.tmatesoft.hg.core.HgLogCommand;
29 import org.tmatesoft.hg.core.HgCatCommand; 30 import org.tmatesoft.hg.core.HgCatCommand;
30 import org.tmatesoft.hg.core.HgFileInformer; 31 import org.tmatesoft.hg.core.HgFileInformer;
31 import org.tmatesoft.hg.core.HgFileRevision; 32 import org.tmatesoft.hg.core.HgFileRevision;
32 import org.tmatesoft.hg.core.HgManifestCommand; 33 import org.tmatesoft.hg.core.HgManifestCommand;
443 } 444 }
444 } 445 }
445 } 446 }
446 447
447 448
448 private void testStatusInternals() { 449 private void testStatusInternals() throws HgDataStreamException {
449 HgDataFile n = hgRepo.getFileNode(Path.create("design.txt")); 450 HgDataFile n = hgRepo.getFileNode(Path.create("design.txt"));
450 for (String s : new String[] {"011dfd44417c72bd9e54cf89b82828f661b700ed", "e5529faa06d53e06a816e56d218115b42782f1ba", "c18e7111f1fc89a80a00f6a39d51288289a382fc"}) { 451 for (String s : new String[] {"011dfd44417c72bd9e54cf89b82828f661b700ed", "e5529faa06d53e06a816e56d218115b42782f1ba", "c18e7111f1fc89a80a00f6a39d51288289a382fc"}) {
451 // expected: 359, 2123, 3079 452 // expected: 359, 2123, 3079
452 byte[] b = s.getBytes(); 453 byte[] b = s.getBytes();
453 final Nodeid nid = Nodeid.fromAscii(b, 0, b.length); 454 final Nodeid nid = Nodeid.fromAscii(b, 0, b.length);