diff src/org/tmatesoft/hg/internal/CsetParamKeeper.java @ 675:a20121a2bba6

Respect default range (0..tip)
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 18 Jul 2013 18:02:36 +0200
parents 6526d8adbc0f
children
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/internal/CsetParamKeeper.java	Wed Jul 17 15:40:51 2013 +0200
+++ b/src/org/tmatesoft/hg/internal/CsetParamKeeper.java	Thu Jul 18 18:02:36 2013 +0200
@@ -83,7 +83,7 @@
 	 */
 	public int get(int defaultRevisionIndex) throws HgRuntimeException {
 		// XXX perhaps, shall translate other predefined constants (like WORKING COPY) here, too (e.g. for HgRevertCommand)
-		if (changelogRevisionIndex != BAD_REVISION || changelogRevisionIndex != TIP) {
+		if (changelogRevisionIndex != BAD_REVISION && changelogRevisionIndex != TIP) {
 			return changelogRevisionIndex;
 		}
 		if (changelogRevisionIndex == TIP || defaultRevisionIndex == TIP) {