review/messages.py @ 7e437c5261bb

Output diffs (with line numbers) and review-level comments for review.

Parsing and formatting unified diffs is hard, let's ride bikes^H^H^H^H^H^H^H^H^H^H^H drink beer!
author Steve Losh <steve@stevelosh.com>
date Mon, 05 Oct 2009 19:45:45 -0400
parents e91ac244e5ad
children 1ef154bb1a4f
#!/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!
'''

SIGNOFF_REQUIRES_MESSAGE = '''\
a message must be provided to sign off!
'''

SIGNOFF_OPINION_CONFLICT = '''\
cannot sign off as both --yes and --no!
'''

SIGNOFF_EXISTS = '''\
you have already signed off on this changeset (use --force to overwrite)!
'''

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
'''

REVIEW_LOG_FILE_HEADER = '''changes in %s'''

REVIEW_LOG_COMMENT_AUTHOR = '''\
# %s said:
'''

REVIEW_LOG_COMMENT_LINE = '''\
#     %s
'''

COMMIT_COMMENT = '''Add a comment on changeset %s'''
COMMIT_SIGNOFF = '''Sign off on changeset %s'''
DELETE_SIGNOFF = '''Remove sign off on changeset %s'''