@@ -145,7 +145,12 @@ builtin_log_oneline = 'builtin_log_oneline(self)'
145
145
'builtin_log_oneline(commit)' = '''
146
146
if(commit.root(),
147
147
format_root_commit(commit),
148
- label(if(commit.current_working_copy(), "working_copy"),
148
+ label(
149
+ separate(" ",
150
+ if(commit.current_working_copy(), "working_copy"),
151
+ if(commit.immutable(), "immutable", "mutable"),
152
+ if(commit.conflict(), "conflicted"),
153
+ ),
149
154
concat(
150
155
separate(" ",
151
156
format_short_change_id_with_hidden_and_divergent_info(commit),
@@ -174,7 +179,12 @@ builtin_log_compact = 'builtin_log_compact(self)'
174
179
'builtin_log_compact(commit)' = '''
175
180
if(commit.root(),
176
181
format_root_commit(commit),
177
- label(if(commit.current_working_copy(), "working_copy"),
182
+ label(
183
+ separate(" ",
184
+ if(commit.current_working_copy(), "working_copy"),
185
+ if(commit.immutable(), "immutable", "mutable"),
186
+ if(commit.conflict(), "conflicted"),
187
+ ),
178
188
concat(
179
189
format_short_commit_header(commit) ++ "\n",
180
190
separate(" ",
@@ -193,7 +203,12 @@ builtin_log_redacted = 'builtin_log_redacted(self)'
193
203
'builtin_log_redacted(commit)' = '''
194
204
if(commit.root(),
195
205
format_root_commit(commit),
196
- label(if(commit.current_working_copy(), "working_copy"),
206
+ label(
207
+ separate(" ",
208
+ if(commit.current_working_copy(), "working_copy"),
209
+ if(commit.immutable(), "immutable", "mutable"),
210
+ if(commit.conflict(), "conflicted"),
211
+ ),
197
212
concat(
198
213
format_short_commit_header_redacted(commit) ++ "\n",
199
214
separate(" ",
@@ -209,7 +224,12 @@ builtin_log_compact_full_description = 'builtin_log_compact_full_description(sel
209
224
'builtin_log_compact_full_description(commit)' = '''
210
225
if(commit.root(),
211
226
format_root_commit(commit),
212
- label(if(commit.current_working_copy(), "working_copy"),
227
+ label(
228
+ separate(" ",
229
+ if(commit.current_working_copy(), "working_copy"),
230
+ if(commit.immutable(), "immutable", "mutable"),
231
+ if(commit.conflict(), "conflicted"),
232
+ ),
213
233
concat(
214
234
format_short_commit_header(commit) ++ "\n",
215
235
separate(" ",
@@ -328,12 +348,14 @@ label(if(commit.current_working_copy(), "working_copy"),
328
348
'''
329
349
330
350
'format_root_commit(root)' = '''
331
- separate(" ",
332
- format_short_change_id(root.change_id()),
333
- label("root", "root()"),
334
- format_short_commit_id(root.commit_id()),
335
- root.bookmarks(),
336
- ) ++ "\n"
351
+ label("immutable",
352
+ separate(" ",
353
+ format_short_change_id(root.change_id()),
354
+ label("root", "root()"),
355
+ format_short_commit_id(root.commit_id()),
356
+ root.bookmarks(),
357
+ ) ++ "\n"
358
+ )
337
359
'''
338
360
339
361
'format_ref_targets(ref)' = '''
@@ -467,7 +489,7 @@ coalesce(
467
489
label(
468
490
separate(" ",
469
491
if(current_working_copy, "working_copy"),
470
- if(immutable, "immutable"),
492
+ if(immutable, "immutable", "mutable" ),
471
493
if(conflict, "conflicted"),
472
494
),
473
495
coalesce(
@@ -486,7 +508,7 @@ coalesce(
486
508
label(
487
509
separate(" ",
488
510
if(current_working_copy, "working_copy"),
489
- if(immutable, "immutable"),
511
+ if(immutable, "immutable", "mutable" ),
490
512
if(conflict, "conflicted"),
491
513
),
492
514
coalesce(
0 commit comments