Russ Cox is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

rsc / re2 http://code.google.com/p/re2

Clone of http://code.google.com/p/re2, for automatic SVN access.

Clone this repository (size: 565.8 KB): HTTPS / SSH
hg clone https://bitbucket.org/rsc/re2
hg clone ssh://hg@bitbucket.org/rsc/re2

Searching for commits

Mercurial supports a functional language for selecting a set of revisions.

The language supports a number of predicates which are joined by infix operators. Parenthesis can be used for grouping.

Identifiers such as branch names must be quoted with single or double quotes if they contain characters outside of [._a-zA-Z0-9\x80-\xff] or if they match one of the predefined predicates.

Prefix operators

not x
Changesets not in x. Short form is ! x.

Infix operators

x::y

A DAG range, meaning all changesets that are descendants of x and ancestors of y, including x and y themselves. If the first endpoint is left out, this is equivalent to ancestors(y), if the second is left out it is equivalent to descendants(x).

An alternative syntax is x..y.

x:y
All changesets with revision numbers between x and y, both inclusive. Either endpoint can be left out, they default to 0 and tip.
x and y
The intersection of changesets in x and y. Short form is x & y.
x or y
The union of changesets in x and y. There are two alternative short forms: x | y and x + y.
x - y
Changesets in x but not in y.

Predicates

all()
All changesets, the same as 0:tip.
ancestor(single, single)
Greatest common ancestor of the two changesets.
ancestors(set)
Changesets that are ancestors of a changeset in set.
author(string)
Alias for user(string).
bookmark([name])
The named bookmark or all bookmarks.
branch(set)
All changesets belonging to the branches of changesets in set.
children(set)
Child changesets of changesets in set.
closed()
Changeset is closed.
date(interval)
Changesets within the interval, see hg help dates.
descendants(set)
Changesets which are descendants of changesets in set.
file(pattern)
Changesets affecting files matched by pattern.
follow()
An alias for ::. (ancestors of the working copy's first parent).
grep(regex)
Like keyword(string) but accepts a regex. Use grep(r'...') to ensure special escape characters are handled correctly.
head()
Changeset is a named branch head.
heads(set)
Members of set with no children in set.
id(string)
Revision non-ambiguously specified by the given hex string prefix.
keyword(string)
Search commit message, user name, and names of changed files for string.
limit(set, n)
First n members of set.
max(set)
Changeset with highest revision number in set.
merge()
Changeset is a merge changeset.
min(set)
Changeset with lowest revision number in set.
p1([set])
First parent of changesets in set, or the working directory.
p2([set])
Second parent of changesets in set, or the working directory.
parents([set])
The set of all parents for all changesets in set, or the working directory.
present(set)
An empty set, if any revision in set isn't found; otherwise, all revisions in set.
rev(number)
Revision with the given numeric identifier.
roots(set)
Changesets with no parent changeset in set.
tag(name)
The specified tag by name, or all tagged revisions if no name is given.
user(string)
User name is string.

Commits 1–30 of 78

Author Revision Comments Message Labels Date
Russ Cox d49d9934b9aa syntax update
Russ Cox 72b58eeb98dd syntax update
Russ Cox f9117e8a1c50 syntax update
r...@swtch.com 9aa1d4f2954d libre2.symbols: use correct non-Darwin syntax (thanks Takanori Ueda)
Stefano Rivera 67e969a063d4 re2_test.cc: Ask sysconf() for pagesize rather than assuming multiple of 8k
Stefano Rivera bbf8cedc561c Make Makefile a little more compliant (CXX, CPPFLAGS)
Stefano Rivera 02de67fe97a0 Refresh codereview.py from golang, to support newer mercurial
Russ Cox 0e7bc2f5e2aa re2: allow use of FilteredRE2 in dynamic library
Russ Cox b49abcd41429 util/logging.h: add <unistd.h> for write
Russ Cox f81ca23d44a4 re2: even more logging
Russ Cox 4762e71c34d1 re2: log more tests for Go
Russ Cox 0c4897e8fbbc re2: add logging of test cases, for Go
Russ Cox a9f0eaee31d7 LOG: use sstream+write in case cerr is not initialized
Russ Cox ea6dcaa2b5a8 Makefile: fix .0 nonsense (thanks Eric Rannaud)
Russ Cox 7007b2180a42 re2: fix comparison bug in LookupCaseFold
Russ Cox f6d25e6f2ce1 re2: do not edit Regexp during IsAnchorStart, IsAnchorEnd
Russ Cox b33ecb9b4ee7 export changes made at Google
Russ Cox 4b4bc44d4581 libre2.symbols: remove defunct operator== (thanks Tuncer Ayaz)
Russ Cox af73701f0348 StringPiece: work with sort
Russ Cox 5d57745f44b5 build fixes (thanks Tuncer Ayaz)
Russ Cox d9f8806c004d re2: add endpos to RE2::Match, fix bugs
Russ Cox 160e31271912 re2: add CapturingGroupNames
Russ Cox 967e77803d77 re2: disallow a{100000,}
Russ Cox 2449d393dde2 re2.h: expand GlobalReplace comment
Russ Cox 64f066f1ddee Regexp::Parse: fix memory access past end of input
Russ Cox c81f68580a53 re2: update to Unicode 6.0.0.
Russ Cox 68ed8c3185b0 doc: be more precise about \b
Russ Cox 2489cfc392e9 doc: add missing backslashes
Russ Cox b76d9c0d9bc2 update syntax to note different $
Russ Cox 547047f8d34f re2 port cleanup
  1. 1
  2. 2
  3. 3
  4. »