svartalf is sharing code with you
Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.
Don't show this againSearching 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 todescendants(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 | yandx + 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. Usegrep(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–32 of 32
| Author | Revision | Comments | Message | Labels | Date |
|---|---|---|---|---|---|
|
|
c27582847cf4 |
Incremented version |
|
||
|
|
75e373c2eabc |
Fixed infinite loop caused by remotely closed connection, a bit refactored error recovery. Closes #3. |
|
||
|
|
1294b64bed32 |
Fixed incorrect Unicode chars escaping/unescaping in C speedups |
|
||
|
|
33138e8645a5 |
Added tag 0.2.3 for changeset 059855fe5177 |
|
||
|
|
059855fe5177 |
Incremented version |
|
||
|
|
c45ea073eba4 |
#1: Now really fixed this, I hope :) |
|
||
|
|
f0ad1526719e |
Added tag 0.2.2 for changeset 609e77ab1577 |
|
||
|
|
609e77ab1577 |
Incremented version |
|
||
|
|
483d04914739 |
Some clarifications to docs |
|
||
|
|
9de669195e74 |
Added empty result check to update,delete,incr and decr |
|
||
|
|
8df74a11864d |
#1: Fixed incorrect behavior with single columns responses, changed return value of update,delete,incr and decr with return_original=True to a list of (field, value) tuples instead of a flat list of values. |
|
||
|
|
48545982ee76 |
Added tag 0.2.1 for changeset d63e73f45066 |
|
||
|
|
d63e73f45066 |
Incremented version |
|
||
|
|
fde873a9c0cf |
Implemented encode and decode utility functions inside an optional C speedups module, modified setup.py to build the speedups on installation |
|
||
|
|
6a841f54f850 |
Fixed descriptions in setup.py |
|
||
|
|
a397b9d7857f |
Added tag 0.2.0 for changeset 8e9edc85224f |
|
||
|
|
8e9edc85224f |
Added incr and decr operations, added original value result to find_modify call - now result of all related operations may be either a list of original values of modified columns or a number of affected rows |
|
||
|
dchaplinsky
|
f0960ca18983 |
Faster decoding |
|
||
|
|
05a2105060c2 |
Added tag 0.1.0 for changeset e1c583b3b35d |
|
||
|
|
e1c583b3b35d |
Prepared package for release on PyPI |
|
||
|
|
cfa77ef8e948 |
Slight refactoring |
|
||
|
|
1bd62218a345 |
Added Manager.purge to autogenerated docs |
|
||
|
|
3a473363deff |
Added all connections purging method |
|
||
|
|
4c632d8342dd |
Merged incoming changeset, added license copy, modified setup.py |
|
||
|
dchaplinsky
|
49ff920d6035 |
Copy-paste bugs fixed (read_sockets replaced to write_sockets) |
|
||
|
|
3799be91d3d0 |
Lots of docstrings, Sphinx docs and some bugfixes |
|
||
|
|
b6435cbbb012 |
Typo fix |
|
||
|
|
2133d9ebe94c |
Refactored exceptions by moving them to a separate module |
|
||
|
|
230027ddb0de |
Added retry_on_failure decorator to reopen index on a new connection in case of failure |
|
||
|
|
d8e8aba71b14 |
Completed high-level manager, fixed some minor bugs, done some refactoring |
|
||
|
|
01f4f4cb2f8e |
Fixed some found bugs, refactored low-level a bit, added very simple high-level manager |
|
||
|
|
2f5785eab940 |
Initial low-level implementation |
|