view tests/test-fileset.t @ 17363:5d9e2031c0b1 stable

fileset: actually implement 'minusset' $ hg debugfileset 'a* - a1' was tracing back because 'minus' symbol was not supported.
author Patrick Mezard <patrick@mezard.eu>
date Wed, 15 Aug 2012 19:02:04 +0200
parents bd867a9ca510
children 0c41fb2d972a
line wrap: on
line source

  $ fileset() {
  >   hg debugfileset "$@"
  > }

  $ hg init repo
  $ cd repo
  $ echo a > a1
  $ echo a > a2
  $ echo b > b1
  $ hg ci -Am addfiles
  adding a1
  adding a2
  adding b1

Test operators and basic patterns

  $ fileset a1
  a1
  $ fileset 'a*'
  a1
  a2
  $ fileset '"re:a\d"'
  a1
  a2
  $ fileset 'a1 or a2'
  a1
  a2
  $ fileset 'a1 | a2'
  a1
  a2
  $ fileset 'a* and "*1"'
  a1
  $ fileset 'a* & "*1"'
  a1
  $ fileset 'not (r"a*")'
  b1
  $ fileset '! ("a*")'
  b1
  $ fileset 'a* - a1'
  a2