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