Mercurial > kallithea
comparison rhodecode/model/changeset_status.py @ 3260:dadfcd30589f beta
use label for auto status change
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 29 Jan 2013 22:50:43 +0100 |
parents | 32a283e5fd0d |
children | 3625fd19b201 |
comparison
equal
deleted
inserted
replaced
3259:99cb0cf75a4c | 3260:dadfcd30589f |
---|---|
130 | 130 |
131 q = ChangesetStatus.query() | 131 q = ChangesetStatus.query() |
132 if not comment: | 132 if not comment: |
133 from rhodecode.model.comment import ChangesetCommentsModel | 133 from rhodecode.model.comment import ChangesetCommentsModel |
134 comment = ChangesetCommentsModel().create( | 134 comment = ChangesetCommentsModel().create( |
135 text='Auto status change to %s' % status, | 135 text='Auto status change to %s' % (ChangesetStatus.get_status_lbl(status)), |
136 repo=repo, | 136 repo=repo, |
137 user=user, | 137 user=user, |
138 pull_request=pull_request, | 138 pull_request=pull_request, |
139 send_email=False | 139 send_email=False |
140 ) | 140 ) |