changeset 99:4d7bb95d553b

StatusCommand().add should list copies
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 27 Jan 2011 23:08:51 +0100
parents 225c48d964ed
children b71b3f7d24d4
files src/org/tmatesoft/hg/core/StatusCommand.java test/org/tmatesoft/hg/test/TestStatus.java
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/StatusCommand.java	Thu Jan 27 21:27:37 2011 +0100
+++ b/src/org/tmatesoft/hg/core/StatusCommand.java	Thu Jan 27 23:08:51 2011 +0100
@@ -52,13 +52,13 @@
 	public StatusCommand defaults() {
 		final Mediator m = mediator;
 		m.needModified = m.needAdded = m.needRemoved = m.needUnknown = m.needMissing = true;
-		m.needClean = m.needIgnored = false;
+		m.needCopies = m.needClean = m.needIgnored = false;
 		return this;
 	}
 	public StatusCommand all() {
 		final Mediator m = mediator;
 		m.needModified = m.needAdded = m.needRemoved = m.needUnknown = m.needMissing = true;
-		m.needClean = m.needIgnored = true;
+		m.needCopies = m.needClean = m.needIgnored = true;
 		return this;
 	}
 	
@@ -182,7 +182,7 @@
 		boolean needMissing;
 		boolean needClean;
 		boolean needIgnored;
-		boolean needCopies = false; // FIXME decide if I need such an argument in StatusComment
+		boolean needCopies;
 		Matcher matcher;
 
 		Mediator() {
--- a/test/org/tmatesoft/hg/test/TestStatus.java	Thu Jan 27 21:27:37 2011 +0100
+++ b/test/org/tmatesoft/hg/test/TestStatus.java	Thu Jan 27 23:08:51 2011 +0100
@@ -46,7 +46,7 @@
 		HgRepository repo = new HgLookup().detectFromWorkingDir();
 		TestStatus test = new TestStatus(repo);
 		test.testLowLevel();
-//		test.testStatusCommand();
+		test.testStatusCommand();
 	}
 	
 	public TestStatus(HgRepository hgRepo) {