Patchwork test-hgignore: add globs for Windows

login
register
mail settings
Submitter Matt Harbison
Date Jan. 13, 2016, 4:58 a.m.
Message ID <4f1529613e8612ad2bc4.1452661080@Envy>
Download mbox | patch
Permalink /patch/12744/
State Accepted
Delegated to: Yuya Nishihara
Headers show

Comments

Matt Harbison - Jan. 13, 2016, 4:58 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1452656440 18000
#      Tue Jan 12 22:40:40 2016 -0500
# Node ID 4f1529613e8612ad2bc4f5129dff198d2865d06e
# Parent  edd2615ad226c14f6904fc1738c3dc36431db223
test-hgignore: add globs for Windows
Yuya Nishihara - Jan. 14, 2016, 3:27 p.m.
On Tue, 12 Jan 2016 23:58:00 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison@yahoo.com>
> # Date 1452656440 18000
> #      Tue Jan 12 22:40:40 2016 -0500
> # Node ID 4f1529613e8612ad2bc4f5129dff198d2865d06e
> # Parent  edd2615ad226c14f6904fc1738c3dc36431db223
> test-hgignore: add globs for Windows

Pushed to the clowncopter, thanks.

> -  (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 1: '*')
> +  (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 1: '*') (glob)

This '*' gets ambiguous, but it seems not so important here and the subsequent
test covers it.

Patch

diff --git a/tests/test-hgignore.t b/tests/test-hgignore.t
--- a/tests/test-hgignore.t
+++ b/tests/test-hgignore.t
@@ -168,7 +168,7 @@ 
 
   $ hg debugignore b.o
   b.o is ignored
-  (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 1: '*')
+  (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 1: '*') (glob)
 
   $ cd ..
 
@@ -199,7 +199,7 @@ 
   a.c is not ignored
   $ hg debugignore dir/c.o
   dir/c.o is ignored
-  (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 2: 'dir/**/c.o')
+  (ignore rule in $TESTTMP/ignorerepo/.hgignore, line 2: 'dir/**/c.o') (glob)
 
 Check using 'include:' in ignore file