tests/test-fileset.t
author Patrick Mezard <patrick@mezard.eu>
Wed, 15 Aug 2012 19:02:04 +0200
branchstable
changeset 17363 5d9e2031c0b1
parent 17362 bd867a9ca510
child 17364 0c41fb2d972a
permissions -rw-r--r--
fileset: actually implement 'minusset' $ hg debugfileset 'a* - a1' was tracing back because 'minus' symbol was not supported.

  $ 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