##// END OF EJS Templates
mercurial: show phases status in changelog....
marcink -
r1674:74692701 default
parent child Browse files
Show More
@@ -160,6 +160,17 b' class MercurialCommit(base.BaseCommit):'
160 160 return self._make_commits(parents)
161 161
162 162 @LazyProperty
163 def phase(self):
164 phase_id = self._remote.ctx_phase(self.idx)
165 phase_text = {
166 0: 'public',
167 1: 'draft',
168 2: 'secret',
169 }.get(phase_id) or ''
170
171 return safe_unicode(phase_text)
172
173 @LazyProperty
163 174 def children(self):
164 175 """
165 176 Returns list of child commits.
@@ -98,4 +98,12 b''
98 98 &.admin {
99 99 &:extend(.tag5);
100 100 }
101 } No newline at end of file
101 }
102
103 .phase-draft {
104 color: @color3
105 }
106
107 .phase-secret {
108 color:@grey3
109 }
@@ -48,6 +48,11 b''
48 48 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=commit.raw_id)}">
49 49 <span class="commit_hash">${h.show_id(commit)}</span>
50 50 </a>
51 % if hasattr(commit, 'phase'):
52 % if commit.phase != 'public':
53 <span class="tag phase-${commit.phase} tooltip" title="${_('commit phase')}">${commit.phase}</span>
54 % endif
55 % endif
51 56 </code>
52 57 </td>
53 58 <td class="td-message expand_commit" data-commit-id="${commit.raw_id}" title="${_('Expand commit message')}" onclick="commitsController.expandCommit(this); return false">
General Comments 0
You need to be logged in to leave comments. Login now