# HG changeset patch # User Chris Cannam # Date 1308760308 -3600 # Node ID 06e5c4f3dd7cd7c633b5c64244ea9808a9390651 # Parent 2af4b5b0bf8340dd3e15ec94a64546c49c2803dd Ensure "this file only" ignore RE is anchored at end diff -r 2af4b5b0bf83 -r 06e5c4f3dd7c src/mainwindow.cpp --- 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) {