##// END OF EJS Templates
phase: when phase cannot be reduced, hint at --force and return 1 (BC)...
phase: when phase cannot be reduced, hint at --force and return 1 (BC) Before, trying to change the phase of a "public" node to "draft" would result in: $ hg phase --draft . no phases changed [0] With this patch: $ hg phase --draft . cannot move 1 changesets to a more permissive phase, use --force no phases changed [1] On partial failures, the exit status is now 1 instead of 0 and the number of changed nodes is displayed while it was only with --verbose. It seems useful to tell the user that despite the apparent failure, something changed. $ hg phase --draft '5 or 7' cannot move 1 changesets to a more permissive phase, use --force phase changed for 1 changesets [1]

File last commit:

r15989:6548a2e3 stable
r16097:8dc573a9 default
Show More
test-commandserver.py.out
127 lines | 2.8 KiB | text/plain | TextLexer
/ tests / test-commandserver.py.out
testing hellomessage:
o, 'capabilities: getencoding runcommand\nencoding: ***'
runcommand id
000000000000 tip
abort: unknown command unknowncommand
testing unknowncommand:
testing checkruncommand:
runcommand
Mercurial Distributed SCM
basic commands:
add add the specified files on the next commit
annotate show changeset information by line for each file
clone make a copy of an existing repository
commit commit the specified files or all outstanding changes
diff diff repository (or selected files)
export dump the header and diffs for one or more changesets
forget forget the specified files on the next commit
init create a new repository in the given directory
log show revision history of entire repository or files
merge merge working directory with another revision
phase set or show the current phase name
pull pull changes from the specified source
push push changes to the specified destination
remove remove the specified files on the next commit
serve start stand-alone webserver
status show changed files in the working directory
summary summarize working directory state
update update working directory (or switch revisions)
use "hg help" for the full list of commands or "hg -v" for details
runcommand id --quiet
000000000000
runcommand id
000000000000 tip
runcommand id --config ui.quiet=True
000000000000
runcommand id
000000000000 tip
testing inputeof:
server exit code = 1
testing serverinput:
runcommand import -
applying patch from stdin
runcommand log
changeset: 0:eff892de26ec
tag: tip
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: 1
testing cwd:
runcommand --cwd foo st bar
? bar
runcommand st foo/bar
? foo/bar
testing localhgrc:
runcommand showconfig
bundle.mainreporoot=$TESTTMP
defaults.backout=-d "0 0"
defaults.commit=-d "0 0"
defaults.tag=-d "0 0"
ui.slash=True
ui.foo=bar
runcommand init foo
runcommand -R foo showconfig ui defaults
defaults.backout=-d "0 0"
defaults.commit=-d "0 0"
defaults.tag=-d "0 0"
ui.slash=True
testing hookoutput:
runcommand --config hooks.pre-identify=python:test-commandserver.hook id
hook talking
now try to read something: 'some input'
eff892de26ec tip
testing outsidechanges:
runcommand tip
changeset: 1:d3a0a68be6de
tag: tip
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: 2
testing bookmarks:
runcommand bookmarks
no bookmarks set
runcommand bookmarks
bm1 1:d3a0a68be6de
bm2 1:d3a0a68be6de
runcommand bookmarks
* bm1 1:d3a0a68be6de
bm2 1:d3a0a68be6de
testing tagscache:
runcommand id -t -r 0
runcommand id -t -r 0
foo
testing setphase:
runcommand phase -r .
2: draft
runcommand phase -r .
2: public