review/messages.py @ 467dacbab7d6

Move the review output into messages, and add a no-comments test.
author Steve Losh <steve@stevelosh.com>
date Sun, 04 Oct 2009 19:41:58 -0400
parents cdd63ba4a8f8
children 22d5187cb76e
#!/usr/bin/env python

INIT_START = '''\
initializing the code review data store and config
'''

INIT_SUCCESS = '''\
the review data has been initialized
run "hg commit .hgreview -m'initialize code review'" to record it permanently
'''

INIT_EXISTS_COMMITTED = '''\
the review data was already initialized by someone else
'''

INIT_EXISTS_UNCOMMITTED = '''\
the review data has already been initialized, but is not recorded!
run "hg commit .hgreview -m'initialize code review'" to record it permanently
'''

COMMENT_REQUIRES_MESSAGE = '''\
a message must be provided to add a comment!
'''

REVIEW_LOG_CSET = '''\
changeset: %d:%s
'''

REVIEW_LOG_AUTHOR = '''\
author:    %s
'''

REVIEW_LOG_SUMMARY = '''\
summary:   %s

'''

REVIEW_LOG_SIGNOFFS = '''\
signoffs:  %d signoffs
'''

REVIEW_LOG_COMMENTS = '''\
comments:  %d comments from %d authors

'''