Mercurial > hg > easyhg
changeset 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 | 2af4b5b0bf83 |
children | d4da9c0809ac |
files | src/mainwindow.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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) {