Mercurial > hg
comparison tests/test-hgignore.t @ 28054:8515b813976b
debugignore: normalize the file before testing dirstate._ignore()
With an ignore pattern containing a '/' and a Windows style path containing '\',
status was properly ignoring the file, but debugignore was stating that it
wasn't ignored.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 08 Feb 2016 12:33:00 -0500 |
parents | 6ff556ef5a46 |
children | 952017471f93 |
comparison
equal
deleted
inserted
replaced
28053:34a2944aac9b | 28054:8515b813976b |
---|---|
284 $ hg status | grep file2 | 284 $ hg status | grep file2 |
285 [1] | 285 [1] |
286 $ hg debugignore dir1/file2 | 286 $ hg debugignore dir1/file2 |
287 dir1/file2 is ignored | 287 dir1/file2 is ignored |
288 (ignore rule in dir2/.hgignore, line 1: 'file*2') | 288 (ignore rule in dir2/.hgignore, line 1: 'file*2') |
289 | |
290 #if windows | |
291 | |
292 Windows paths are accepted on input | |
293 | |
294 $ rm dir1/.hgignore | |
295 $ echo "dir1/file*" >> .hgignore | |
296 $ hg debugignore "dir1\file2" | |
297 dir1\file2 is ignored | |
298 (ignore rule in $TESTTMP\ignorerepo\.hgignore, line 4: 'dir1/file*') | |
299 $ hg up -qC . | |
300 | |
301 #endif |