Show More
@@ -189,8 +189,8 b' def underwayrevset(repo, subset, x):' | |||
|
189 | 189 | |
|
190 | 190 | return subset & relevant |
|
191 | 191 | |
|
192 |
@showview(' |
|
|
193 |
def show |
|
|
192 | @showview('work', fmtopic='work') | |
|
193 | def showwork(ui, repo, fm): | |
|
194 | 194 | """changesets that aren't finished""" |
|
195 | 195 | # TODO support date-based limiting when calling revset. |
|
196 | 196 | revs = repo.revs('sort(_underway(), topo)') |
@@ -1,3 +1,3 b'' | |||
|
1 | 1 | # TODO add label() once we figure out which namespace the labels belong on. |
|
2 | 2 | showbookmarks = '{if(active, "*", " ")} {pad(bookmark, longestbookmarklen + 4)}{shortest(node, 5)}\n' |
|
3 |
show |
|
|
3 | showwork = '{shortest(node, 5)}{if(branches, " ({branch})")}{if(bookmarks, " ({bookmarks})")} {desc|firstline}' |
@@ -8,27 +8,27 b'' | |||
|
8 | 8 | |
|
9 | 9 | Command works on an empty repo |
|
10 | 10 | |
|
11 |
$ hg show |
|
|
11 | $ hg show work | |
|
12 | 12 | |
|
13 | 13 | Single draft changeset shown |
|
14 | 14 | |
|
15 | 15 | $ echo 0 > foo |
|
16 | 16 | $ hg -q commit -A -m 'commit 0' |
|
17 | 17 | |
|
18 |
$ hg show |
|
|
18 | $ hg show work | |
|
19 | 19 | @ 9f171 commit 0 |
|
20 | 20 | |
|
21 | 21 | Even when it isn't the wdir |
|
22 | 22 | |
|
23 | 23 | $ hg -q up null |
|
24 | 24 | |
|
25 |
$ hg show |
|
|
25 | $ hg show work | |
|
26 | 26 | o 9f171 commit 0 |
|
27 | 27 | |
|
28 | 28 | Single changeset is still there when public because it is a head |
|
29 | 29 | |
|
30 | 30 | $ hg phase --public -r 0 |
|
31 |
$ hg show |
|
|
31 | $ hg show work | |
|
32 | 32 | o 9f171 commit 0 |
|
33 | 33 | |
|
34 | 34 | A draft child will show both it and public parent |
@@ -37,7 +37,7 b' A draft child will show both it and publ' | |||
|
37 | 37 | $ echo 1 > foo |
|
38 | 38 | $ hg commit -m 'commit 1' |
|
39 | 39 | |
|
40 |
$ hg show |
|
|
40 | $ hg show work | |
|
41 | 41 | @ 181cc commit 1 |
|
42 | 42 | o 9f171 commit 0 |
|
43 | 43 | |
@@ -46,7 +46,7 b' Multiple draft children will be shown' | |||
|
46 | 46 | $ echo 2 > foo |
|
47 | 47 | $ hg commit -m 'commit 2' |
|
48 | 48 | |
|
49 |
$ hg show |
|
|
49 | $ hg show work | |
|
50 | 50 | @ 128c8 commit 2 |
|
51 | 51 | o 181cc commit 1 |
|
52 | 52 | o 9f171 commit 0 |
@@ -54,7 +54,7 b' Multiple draft children will be shown' | |||
|
54 | 54 | Bumping first draft changeset to public will hide its parent |
|
55 | 55 | |
|
56 | 56 | $ hg phase --public -r 1 |
|
57 |
$ hg show |
|
|
57 | $ hg show work | |
|
58 | 58 | @ 128c8 commit 2 |
|
59 | 59 | o 181cc commit 1 |
|
60 | 60 | | |
@@ -67,7 +67,7 b' Multiple DAG heads will be shown' | |||
|
67 | 67 | $ hg commit -m 'commit 3' |
|
68 | 68 | created new head |
|
69 | 69 | |
|
70 |
$ hg show |
|
|
70 | $ hg show work | |
|
71 | 71 | @ f0abc commit 3 |
|
72 | 72 | | o 128c8 commit 2 |
|
73 | 73 | |/ |
@@ -79,7 +79,7 b' Even when wdir is something else' | |||
|
79 | 79 | |
|
80 | 80 | $ hg -q up null |
|
81 | 81 | |
|
82 |
$ hg show |
|
|
82 | $ hg show work | |
|
83 | 83 | o f0abc commit 3 |
|
84 | 84 | | o 128c8 commit 2 |
|
85 | 85 | |/ |
@@ -94,7 +94,7 b' Draft child shows public head (multiple ' | |||
|
94 | 94 | $ hg commit -m 'commit 4' |
|
95 | 95 | created new head |
|
96 | 96 | |
|
97 |
$ hg show |
|
|
97 | $ hg show work | |
|
98 | 98 | @ 668ca commit 4 |
|
99 | 99 | | o f0abc commit 3 |
|
100 | 100 | | | o 128c8 commit 2 |
@@ -125,7 +125,7 b' Branch name appears in output' | |||
|
125 | 125 | $ echo 4 > foo |
|
126 | 126 | $ hg commit -m 'commit 4' |
|
127 | 127 | |
|
128 |
$ hg show |
|
|
128 | $ hg show work | |
|
129 | 129 | @ f8dd3 (mybranch) commit 4 |
|
130 | 130 | o 90cfc (mybranch) commit 3 |
|
131 | 131 | | o 128c8 commit 2 |
@@ -156,7 +156,7 b' Bookmark name appears in output' | |||
|
156 | 156 | $ hg commit -m 'commit 4' |
|
157 | 157 | $ hg bookmark mybook |
|
158 | 158 | |
|
159 |
$ hg show |
|
|
159 | $ hg show work | |
|
160 | 160 | @ cac82 (mybook) commit 4 |
|
161 | 161 | o f0abc commit 3 |
|
162 | 162 | | o 128c8 (@) commit 2 |
@@ -11,7 +11,7 b' No arguments shows available views' | |||
|
11 | 11 | available views: |
|
12 | 12 | |
|
13 | 13 | bookmarks -- bookmarks and their associated changeset |
|
14 |
|
|
|
14 | work -- changesets that aren't finished | |
|
15 | 15 | |
|
16 | 16 | abort: no view requested |
|
17 | 17 | (use "hg show VIEW" to choose a view) |
@@ -40,7 +40,7 b' No arguments shows available views' | |||
|
40 | 40 | |
|
41 | 41 | bookmarks bookmarks and their associated changeset |
|
42 | 42 | |
|
43 |
|
|
|
43 | work changesets that aren't finished | |
|
44 | 44 | |
|
45 | 45 | (use 'hg help -e show' to show help for the show extension) |
|
46 | 46 |
General Comments 0
You need to be logged in to leave comments.
Login now