diff src/org/tmatesoft/hg/repo/HgIgnore.java @ 343:58016b1b8554

HgIgnore: glob patterns not to match substring when not meant to
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Sat, 19 Nov 2011 01:07:27 +0100
parents 516b817415ba
children e732521a9eb4
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgIgnore.java	Fri Nov 18 05:10:33 2011 +0100
+++ b/src/org/tmatesoft/hg/repo/HgIgnore.java	Sat Nov 19 01:07:27 2011 +0100
@@ -160,6 +160,7 @@
 			}
 			sb.append(ch);
 		}
+		sb.append("(?:/|$)");
 		return sb.toString();
 	}