Mercurial > hg
diff tests/test-sparse.t @ 44724:5c2a4f37eace
tests: deal with "ls" vs "ls -A" difference on 2BSD derived systems
BSD-derived systems will use "ls -A" when running as root. Adjust the
test cases to always use the flag and include .hg and related output as
appropiately.
Differential Revision: https://phab.mercurial-scm.org/D8397
author | Joerg Sonnenberger <joerg@bec.de> |
---|---|
date | Fri, 10 Apr 2020 19:58:34 +0200 |
parents | 7e99b02768ef |
children | dc5e5577af39 |
line wrap: on
line diff
--- a/tests/test-sparse.t Fri Apr 10 19:53:36 2020 +0200 +++ b/tests/test-sparse.t Fri Apr 10 19:58:34 2020 +0200 @@ -22,7 +22,8 @@ $ hg up -q 0 $ hg debugsparse --include 'hide' - $ ls + $ ls -A + .hg hide Absolute paths outside the repo should just be rejected @@ -77,7 +78,8 @@ $ echo z > hide $ hg ci -Aqm 'edit hide' - $ ls + $ ls -A + .hg hide $ hg manifest hide @@ -86,7 +88,8 @@ Verify --reset brings files back $ hg debugsparse --reset - $ ls + $ ls -A + .hg hide show $ cat hide @@ -106,11 +109,13 @@ Verify update only writes included files $ hg up -q 0 - $ ls + $ ls -A + .hg show $ hg up -q 1 - $ ls + $ ls -A + .hg show show2 @@ -144,7 +149,8 @@ $ hg debugsparse --delete -f 'show*' pending changes to 'hide' - $ ls + $ ls -A + .hg hide hide2 hide3 @@ -166,7 +172,8 @@ $ hg debugsparse --exclude -f 'hide*' pending changes to 'hide' - $ ls + $ ls -A + .hg hide hide3 show @@ -177,7 +184,8 @@ $ hg up -qC . TODO: add an option to purge to also purge files outside the sparse config? $ hg purge --all --config extensions.purge= - $ ls + $ ls -A + .hg hide hide3 show @@ -216,7 +224,8 @@ rebase aborted $ rm hide.orig - $ ls + $ ls -A + .hg show show2