James Mills 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

prologic / pymills

My Python Library of useful modules and tools.

Clone this repository (size: 1.3 MB): HTTPS / SSH
hg clone https://bitbucket.org/prologic/pymills
hg clone ssh://hg@bitbucket.org/prologic/pymills

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 930

Author Revision Comments Message Labels Date
prologic 0d1424e1b0ab Improved flexibility of utils.mkpasswd() to allow for customization of the no. of uppwer/lower leters and digits in the random generated password.
James Mills a37df5aaa8e8 pymills.mathtools: Fixed std function
James Mills 4477a1466653 pymills.mathtools: New module containing simple, useful math routines
prologic 9d0a7fbb87b4 tests cleanup
prologic cc916c087e85 Don't need unittest based main - using py.test insetad
prologic 76e383793c40 Removed getProgName, writePID, daemonze - use circuits.app
prologic 46c59c07d5cf Removed encodeHTML/decodeHTML (use circuits.web)
prologic 9422e21f21c3 Moved tests to ../tests/
prologic 40317e1aa2b1 Removed - use circuits.app.log
prologic 0a93bfe60c8f Removed - not attributed
prologic 16d586c5b22d Big cleanup
prologic ebf8ea577779 Deprecated db and db2 (dbapi replaces them)
prologic 0ed1be8ac598 New dbapi and pyodict modules
prologic c17806aad134 utils: Re-added caller() from 764
prologic fae375e6dff3 log: Re-added from r802
prologic 5d02d4a2ca7e ai.ann: Removed - deprecated
jmills 6b9ff757b1ae utils: Fixed typo in doc string
prologic 90938d167546 Improved Makefile with improved options for nosetests
prologic 2b6022a69bae Much improved test suite module and main
prologic 6f9e21170ed8 Removed deprecated tests for deprecated modules
prologic 3564bb3e756e Improved Makefile and setup.py
prologic 557ae95d439f Removed
prologic 534f84b4cdaf Removed - Deprecated in favor of circuits. See: http://trac.softcircuit.com.au/circuits/
prologic f36a51c83912 Automated merge with http://hg.softcircuit.com.au/projects/pymills/
prologic db9fc92258df utils: Added improved MemoryStats class and adapted memory(), resident() and stack() functions
prologic 8b69f490f452 db: Make getFields a public method. Tidied up list comp to generate list of fields
prologic e2da5646cfc3 Automated merge with http://hg.softcircuit.com.au/projects/pymills/
prologic edc08c87ecb7 examples/spider.py: Fixed bad import of escape (use encodeHTML from utils). Fixed -d/--depth option by specifying a type.
prologic aee6fb470b7b env; chdir to env path
prologic e5893f0fa28e config: Call respective super methods.
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 30
  8. 31
  9. »