comparison src/com/tmate/hgkit/console/Cat.java @ 3:24bb4f365164

Rudimentary log functionality with basic infrastructure is in place
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Mon, 20 Dec 2010 02:50:36 +0100
parents 08db726a0fb7
children fc265ddeab26
comparison
equal deleted inserted replaced
2:08db726a0fb7 3:24bb4f365164
17 HgRepository hgRepo = repoLookup.detect(args); 17 HgRepository hgRepo = repoLookup.detect(args);
18 if (hgRepo.isInvalid()) { 18 if (hgRepo.isInvalid()) {
19 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation()); 19 System.err.printf("Can't find repository in: %s\n", hgRepo.getLocation());
20 return; 20 return;
21 } 21 }
22 byte[] tipContent = hgRepo.getFileNode("hello.c").content();
23 System.out.println(new String(tipContent));
22 } 24 }
23 } 25 }