diff cmdline/org/tmatesoft/hg/console/Main.java @ 477:9c9d09111aee

Tests for file flags(exec, link, regular)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 12 Jul 2012 18:07:51 +0200
parents 0e34b8f3946a
children e74580e24feb
line wrap: on
line diff
--- a/cmdline/org/tmatesoft/hg/console/Main.java	Thu Jul 12 18:07:12 2012 +0200
+++ b/cmdline/org/tmatesoft/hg/console/Main.java	Thu Jul 12 18:07:51 2012 +0200
@@ -107,7 +107,6 @@
 		Main m = new Main(args);
 //		m.checkWalkFileRevisions();
 //		m.checkSubProgress();
-//		m.checkFileFlags();
 //		m.buildFileLog();
 //		m.testConsoleLog();
 //		m.testTreeTraversal();
@@ -172,20 +171,6 @@
 		s2.done();
 	}
 
-	private void checkFileFlags() throws Exception {
-		// ~/hg/test-flags repo
-		// TODO transform to a test once I keep test-flags in test-repos.jar
-		// JAR can't keep symlinks. Perhaps, a solution would be to keep repo without WC and
-		// perform an `hg up` before use
-		HgDataFile link = hgRepo.getFileNode("file-link");
-		HgDataFile exec = hgRepo.getFileNode("file-exec");
-		HgDataFile file = hgRepo.getFileNode("regular-file");
-		System.out.println("Link: " + link.getFlags(TIP));
-		System.out.println("Exec: " + exec.getFlags(TIP));
-		System.out.println("File: " + file.getFlags(TIP));
-	}
-	
-
 	private void buildFileLog() throws Exception {
 		final long start = System.nanoTime();
 		HgLogCommand cmd = new HgLogCommand(hgRepo);