##// END OF EJS Templates
hgweb: add phase to {changeset} template...
Gregory Szorc -
r24564:5ec4bda3 default
parent child Browse files
Show More
@@ -324,6 +324,7 b' def changesetentry(web, req, tmpl, ctx):'
324 324 desc=ctx.description(),
325 325 extra=ctx.extra(),
326 326 date=ctx.date(),
327 phase=ctx.phasestr(),
327 328 files=files,
328 329 diffsummary=lambda **x: diffsummary(diffstatsgen),
329 330 diffstat=diffstats,
@@ -11,7 +11,8 b" changeset = '\\{"
11 11 "bookmarks": [{join(changesetbookmark, ", ")}],
12 12 "tags": [{join(changesettag, ", ")}],
13 13 "user": {author|json},
14 "parents": [{join(parent%changesetparent, ", ")}]
14 "parents": [{join(parent%changesetparent, ", ")}],
15 "phase": {phase|json}
15 16 }'
16 17 changesetbranch = '{name|json}'
17 18 changesetbookmark = '{bookmark|json}'
@@ -22,6 +22,7 b''
22 22 $ hg mv foo foo-new
23 23 $ hg commit -m 'move foo'
24 24 $ hg tag -m 'create tag' tag1
25 $ hg phase --public -r .
25 26 $ echo baz > da/foo
26 27 $ hg commit -m 'another commit to da/foo'
27 28 $ hg tag -m 'create tag2' tag2
@@ -162,6 +163,7 b' changeset/ renders the tip changeset'
162 163 "ceed296fe500c3fac9541e31dad860cb49c89e45",
163 164 "ed66c30e87eb65337c05a4229efaa5f1d5285a90"
164 165 ],
166 "phase": "draft",
165 167 "tags": [
166 168 "tip"
167 169 ],
@@ -185,6 +187,7 b' changeset/{revision} shows tags'
185 187 "parents": [
186 188 "8d7c456572acf3557e8ed8a07286b10c408bcec5"
187 189 ],
190 "phase": "public",
188 191 "tags": [
189 192 "tag1"
190 193 ],
@@ -210,6 +213,7 b' changeset/{revision} shows bookmarks'
210 213 "parents": [
211 214 "f8bbb9024b10f93cdbb8d940337398291d40dea8"
212 215 ],
216 "phase": "public",
213 217 "tags": [],
214 218 "user": "test"
215 219 }
@@ -231,6 +235,7 b' changeset/{revision} shows branches'
231 235 "parents": [
232 236 "06e557f3edf66faa1ccaba5dd8c203c21cc79f1e"
233 237 ],
238 "phase": "draft",
234 239 "tags": [],
235 240 "user": "test"
236 241 }
General Comments 0
You need to be logged in to leave comments. Login now