view contrib/revsetbenchmarks.txt @ 21815:a4b67bf1f0a5 stable

match: make glob '**/' match the empty string Previously, a glob pattern of the form 'foo/**/bar' would match 'foo/a/bar' but not 'foo/bar'. That was because the '**' in 'foo/**/bar' would be translated to '.*', making the final regex pattern 'foo/.*/bar'. That pattern doesn't match the string 'foo/bar'. This is a bug because the '**/' glob matches the empty string in standard Unix shells like bash and zsh. Fix that by making the ending '/' optional if an empty string can be matched.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 25 Jun 2014 14:50:48 -0700
parents 1d7a2771aa36
children 7078ce067367
line wrap: on
line source

all()
draft()
::tip
draft() and ::tip
0::tip
roots(0::tip)
author(lmoscovicz)
author(mpm)
author(lmoscovicz) or author(mpm)
tip:0
max(tip:0)
min(0:tip)
0::
min(0::)
roots((tip~100::) - (tip~100::tip))
::p1(p1(tip))::
public()
:10000 and public()
draft()
:10000 and draft()