diff src/mainwindow.cpp @ 423:06e5c4f3dd7c

Ensure "this file only" ignore RE is anchored at end
author Chris Cannam <chris.cannam@eecs.qmul.ac.uk>
date Wed, 22 Jun 2011 17:31:48 +0100
parents 653e9694a694
children ad106f5fe75f
line wrap: on
line diff
--- a/src/mainwindow.cpp	Wed Jun 22 13:01:50 2011 +0100
+++ b/src/mainwindow.cpp	Wed Jun 22 17:31:48 2011 +0100
@@ -715,7 +715,7 @@
             // Doesn't seem to be possible to do this with a glob,
             // because the glob is always unanchored and there is no
             // equivalent of ^ to anchor it
-            line = "re:^" + regexEscape(a);
+            line = "re:^" + regexEscape(a) + "$";
         } else if (itype == HgIgnoreDialog::IgnoreAllFilesOfGivenNames) {
             line = a;
         } else if (itype == HgIgnoreDialog::IgnoreWholeDirectory) {