from subprocess import check_output, CalledProcessError, STDOUT |
from subprocess import check_output, CalledProcessError, STDOUT |
|
|
from settings import DBPATH, HG, LOCKFILE, TESTHGREPO, TESTREPO, rel |
from settings import DBPATH, HG, LOCKFILE, TESTHGREPO, TESTREPO, rel |
|
|
|
|
REVSETWIP = '(parents(not public()) or not public() or . or (head() and branch(default))) and (not obsolete() or unstable()^) and not closed()' |
REVSETWIP = ( |
|
'(parents(not public())' |
|
' or not public()' |
|
' or .' |
|
' or (head() and branch(default)))' |
|
' and (not obsolete() or unstable()^)' |
|
' and not closed()' |
|
) |
MARKS = OrderedDict(( |
MARKS = OrderedDict(( |
('blame', 'hg blame README'), |
('blame', 'hg blame README'), |
('grepall', 'hg grep "version" --all README'), |
('grepall', 'hg grep "version" --all README'), |
('grepallf', 'hg grep "version" --all --follow README'), |
('grepallf', 'hg grep "version" --all --follow README'), |
('diff', 'hg diff -r "tip~100:tip" README'), |
('diff', 'hg diff -r "tip~100:tip" README'), |