##// END OF EJS Templates
templatekw: introduce obsfate keyword...
Boris Feld -
r34848:e27f1f04 default
parent child Browse files
Show More
@@ -783,3 +783,44 b' def markersoperations(markers):'
783 783 if meta.get('operation'))
784 784
785 785 return sorted(operations)
786
787 def obsfateprinter(successors, markers, ui):
788 """ Build a obsfate string for a single successorset using all obsfate
789 related function defined in obsutil
790 """
791 line = []
792
793 # Verb
794 line.append(successorsetverb(successors))
795
796 # Operations
797 operations = markersoperations(markers)
798 if operations:
799 line.append(" using %s" % ", ".join(operations))
800
801 # Successors
802 if successors:
803 fmtsuccessors = [successors.joinfmt(succ) for succ in successors]
804 line.append(" as %s" % ", ".join(fmtsuccessors))
805
806 # Users
807 users = markersusers(markers)
808
809 if users:
810 line.append(" by %s" % ", ".join(users))
811
812 # Date
813 dates = markersdates(markers)
814
815 min_date = min(dates)
816 max_date = max(dates)
817
818 if min_date == max_date:
819 fmtmin_date = util.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
820 line.append(" (at %s)" % fmtmin_date)
821 else:
822 fmtmin_date = util.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
823 fmtmax_date = util.datestr(max_date, '%Y-%m-%d %H:%M %1%2')
824 line.append(" (between %s and %s)" % (fmtmin_date, fmtmax_date))
825
826 return "".join(line)
@@ -600,6 +600,23 b' def showmanifest(**args):'
600 600 # rev and node are completely different from changeset's.
601 601 return _mappable(f, None, f, lambda x: {'rev': mrev, 'node': mhex})
602 602
603 @templatekeyword('obsfate')
604 def showobsfate(**args):
605 # this function returns a list containing pre-formatted obsfate strings.
606 #
607 # This function will be replaced by templates fragments when we will have
608 # the verbosity templatekw available.
609 succsandmarkers = showsuccsandmarkers(**args)
610
611 ui = args['ui']
612
613 values = []
614
615 for x in succsandmarkers:
616 values.append(obsutil.obsfateprinter(x['successors'], x['markers'], ui))
617
618 return showlist("fate", values, args)
619
603 620 def shownames(namespace, **args):
604 621 """helper method to generate a template keyword for a namespace"""
605 622 args = pycompat.byteskwargs(args)
@@ -16,15 +16,8 b' to happen in the local case but can easi'
16 16 > evolution = all
17 17 > [phases]
18 18 > publish = False
19 > [templates]
20 > obsfatesuccessors = "{if(successors, " as ")}{join(successors, ", ")}"
21 > obsfateverb = "{obsfateverb(successors)}"
22 > obsfateoperations = "{if(obsfateoperations(markers), " using {join(obsfateoperations(markers), ", ")}")}"
23 > obsfateusers = "{if(obsfateusers(markers), " by {join(obsfateusers(markers), ", ")}")}"
24 > obsfatedate = "{if(obsfatedate(markers), "{ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), " (at {min(obsfatedate(markers))|isodate})", " (between {min(obsfatedate(markers))|isodate} and {max(obsfatedate(markers))|isodate})")}")}"
25 > obsfate = "{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}; "
26 19 > [ui]
27 > logtemplate= {rev}:{node|short} {desc} {if(succsandmarkers, "[{succsandmarkers % "{obsfate}"}]")}\n
20 > logtemplate= {rev}:{node|short} {desc}{if(obsfate, " [{join(obsfate, "; ")}]")}\n
28 21 > EOF
29 22
30 23 Check distributed chain building
@@ -63,7 +56,7 b' Initial setup'
63 56 |
64 57 | o 2:7f6b0a6f5c25 c_A1
65 58 |/
66 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000); ]
59 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000)]
67 60 |/
68 61 o 0:e82fb8d02bbf ROOT
69 62
@@ -100,11 +93,11 b' server side: create new revision on the '
100 93 $ hg log -G --hidden
101 94 @ 4:391a2bf12b1b c_B1
102 95 |
103 | x 3:e5d7dda7cd28 c_B0 [rewritten as 4:391a2bf12b1b by server (at 1970-01-01 00:00 +0000); ]
96 | x 3:e5d7dda7cd28 c_B0 [rewritten as 4:391a2bf12b1b by server (at 1970-01-01 00:00 +0000)]
104 97 |/
105 98 | o 2:7f6b0a6f5c25 c_A1
106 99 |/
107 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000); ]
100 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000)]
108 101 |/
109 102 o 0:e82fb8d02bbf ROOT
110 103
@@ -127,9 +120,9 b' client side: create a marker between two'
127 120 $ hg log -G --hidden
128 121 @ 3:e5d7dda7cd28 c_B0
129 122 |
130 | x 2:7f6b0a6f5c25 c_A1 [rewritten as 3:e5d7dda7cd28 by client (at 1970-01-01 00:00 +0000); ]
123 | x 2:7f6b0a6f5c25 c_A1 [rewritten as 3:e5d7dda7cd28 by client (at 1970-01-01 00:00 +0000)]
131 124 |/
132 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000); ]
125 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000)]
133 126 |/
134 127 o 0:e82fb8d02bbf ROOT
135 128
@@ -161,11 +154,11 b' client side: pull from the server'
161 154 $ hg log -G --hidden
162 155 o 4:391a2bf12b1b c_B1
163 156 |
164 | x 3:e5d7dda7cd28 c_B0 [rewritten as 4:391a2bf12b1b by server (at 1970-01-01 00:00 +0000); ]
157 | x 3:e5d7dda7cd28 c_B0 [rewritten as 4:391a2bf12b1b by server (at 1970-01-01 00:00 +0000)]
165 158 |/
166 | x 2:7f6b0a6f5c25 c_A1 [rewritten as 3:e5d7dda7cd28 by client (at 1970-01-01 00:00 +0000); ]
159 | x 2:7f6b0a6f5c25 c_A1 [rewritten as 3:e5d7dda7cd28 by client (at 1970-01-01 00:00 +0000)]
167 160 |/
168 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000); ]
161 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000)]
169 162 |/
170 163 @ 0:e82fb8d02bbf ROOT
171 164
@@ -197,11 +190,11 b' obsolete on the server side but the mark'
197 190 $ hg -R ../server/ log -G --hidden
198 191 @ 4:391a2bf12b1b c_B1
199 192 |
200 | x 3:e5d7dda7cd28 c_B0 [rewritten as 4:391a2bf12b1b by server (at 1970-01-01 00:00 +0000); ]
193 | x 3:e5d7dda7cd28 c_B0 [rewritten as 4:391a2bf12b1b by server (at 1970-01-01 00:00 +0000)]
201 194 |/
202 | x 2:7f6b0a6f5c25 c_A1 [rewritten as 3:e5d7dda7cd28 by client (at 1970-01-01 00:00 +0000); ]
195 | x 2:7f6b0a6f5c25 c_A1 [rewritten as 3:e5d7dda7cd28 by client (at 1970-01-01 00:00 +0000)]
203 196 |/
204 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000); ]
197 | x 1:e1b46f0f979f c_A0 [rewritten as 2:7f6b0a6f5c25 by server (at 1970-01-01 00:00 +0000)]
205 198 |/
206 199 o 0:e82fb8d02bbf ROOT
207 200
@@ -298,13 +291,13 b' Bob pulls from Alice and rewrites them'
298 291 $ hg log -G --hidden
299 292 @ 5:956063ac4557 c_B1
300 293 |
301 | x 4:5ffb9e311b35 c_B0 [rewritten using amend as 5:956063ac4557 by bob (at 1970-01-01 00:00 +0000); ]
294 | x 4:5ffb9e311b35 c_B0 [rewritten using amend as 5:956063ac4557 by bob (at 1970-01-01 00:00 +0000)]
302 295 |/
303 296 o 3:5b5708a437f2 c_A1
304 297 |
305 | x 2:ef908e42ce65 c_B0 [rewritten using rebase as 4:5ffb9e311b35 by bob (at 1970-01-01 00:00 +0000); ]
298 | x 2:ef908e42ce65 c_B0 [rewritten using rebase as 4:5ffb9e311b35 by bob (at 1970-01-01 00:00 +0000)]
306 299 | |
307 | x 1:d33b0a3a6464 c_A0 [rewritten using amend as 3:5b5708a437f2 by bob (at 1970-01-01 00:00 +0000); ]
300 | x 1:d33b0a3a6464 c_A0 [rewritten using amend as 3:5b5708a437f2 by bob (at 1970-01-01 00:00 +0000)]
308 301 |/
309 302 o 0:e82fb8d02bbf ROOT
310 303
@@ -345,13 +338,13 b' Celeste pulls from Bob and rewrites them'
345 338 $ hg log -G --hidden
346 339 @ 5:77ae25d99ff0 c_B2
347 340 |
348 | x 4:3cf8de21cc22 c_B1 [rewritten using amend as 5:77ae25d99ff0 by celeste (at 1970-01-01 00:00 +0000); ]
341 | x 4:3cf8de21cc22 c_B1 [rewritten using amend as 5:77ae25d99ff0 by celeste (at 1970-01-01 00:00 +0000)]
349 342 |/
350 343 o 3:9866d64649a5 c_A2
351 344 |
352 | x 2:956063ac4557 c_B1 [rewritten using rebase as 4:3cf8de21cc22 by celeste (at 1970-01-01 00:00 +0000); ]
345 | x 2:956063ac4557 c_B1 [rewritten using rebase as 4:3cf8de21cc22 by celeste (at 1970-01-01 00:00 +0000)]
353 346 | |
354 | x 1:5b5708a437f2 c_A1 [rewritten using amend as 3:9866d64649a5 by celeste (at 1970-01-01 00:00 +0000); ]
347 | x 1:5b5708a437f2 c_A1 [rewritten using amend as 3:9866d64649a5 by celeste (at 1970-01-01 00:00 +0000)]
355 348 |/
356 349 o 0:e82fb8d02bbf ROOT
357 350
@@ -469,17 +462,17 b' decision is made in that case, so receiv'
469 462 @ 0:e82fb8d02bbf ROOT
470 463
471 464 $ hg log -G --hidden
472 x 6:956063ac4557 c_B1 [rewritten using amend, rebase as 4:77ae25d99ff0 by celeste (at 1970-01-01 00:00 +0000); ]
465 x 6:956063ac4557 c_B1 [rewritten using amend, rebase as 4:77ae25d99ff0 by celeste (at 1970-01-01 00:00 +0000)]
473 466 |
474 x 5:5b5708a437f2 c_A1 [rewritten using amend as 3:9866d64649a5 by celeste (at 1970-01-01 00:00 +0000); ]
467 x 5:5b5708a437f2 c_A1 [rewritten using amend as 3:9866d64649a5 by celeste (at 1970-01-01 00:00 +0000)]
475 468 |
476 469 | o 4:77ae25d99ff0 c_B2
477 470 | |
478 471 | o 3:9866d64649a5 c_A2
479 472 |/
480 | x 2:ef908e42ce65 c_B0 [rewritten using amend, rebase as 6:956063ac4557 by bob (at 1970-01-01 00:00 +0000); ]
473 | x 2:ef908e42ce65 c_B0 [rewritten using amend, rebase as 6:956063ac4557 by bob (at 1970-01-01 00:00 +0000)]
481 474 | |
482 | x 1:d33b0a3a6464 c_A0 [rewritten using amend as 5:5b5708a437f2 by bob (at 1970-01-01 00:00 +0000); ]
475 | x 1:d33b0a3a6464 c_A0 [rewritten using amend as 5:5b5708a437f2 by bob (at 1970-01-01 00:00 +0000)]
483 476 |/
484 477 @ 0:e82fb8d02bbf ROOT
485 478
@@ -7,7 +7,7 b' Enable obsolete'
7 7
8 8 $ cat >> $HGRCPATH << EOF
9 9 > [ui]
10 > logtemplate = {rev}:{node|short} {desc}\n
10 > logtemplate = {rev}:{node|short} {desc}{if(obsfate, " [{join(obsfate, "; ")}]")}\n
11 11 > [experimental]
12 12 > stabilization=createmarkers
13 13 > [extensions]
@@ -66,7 +66,7 b' A_1 have two direct and divergent succes'
66 66 |
67 67 | o 2:82623d38b9ba A_1
68 68 |/
69 | x 1:007dc284c1f8 A_0
69 | x 1:007dc284c1f8 A_0 [rewritten as 2:82623d38b9ba by test (at 1970-01-01 00:00 +0000); rewritten as 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
70 70 |/
71 71 @ 0:d20a80d4def3 base
72 72
@@ -127,11 +127,11 b' indirect divergence with known changeset'
127 127 $ hg log -G --hidden
128 128 @ 4:01f36c5a8fda A_3
129 129 |
130 | x 3:392fd25390da A_2
130 | x 3:392fd25390da A_2 [rewritten as 4:01f36c5a8fda by test (at 1970-01-01 00:00 +0000)]
131 131 |/
132 132 | o 2:82623d38b9ba A_1
133 133 |/
134 | x 1:007dc284c1f8 A_0
134 | x 1:007dc284c1f8 A_0 [rewritten as 2:82623d38b9ba by test (at 1970-01-01 00:00 +0000); rewritten as 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
135 135 |/
136 136 o 0:d20a80d4def3 base
137 137
@@ -185,7 +185,7 b' indirect divergence with known changeset'
185 185 |
186 186 | o 2:82623d38b9ba A_1
187 187 |/
188 | x 1:007dc284c1f8 A_0
188 | x 1:007dc284c1f8 A_0 [rewritten as 2:82623d38b9ba by test (at 1970-01-01 00:00 +0000); rewritten as 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
189 189 |/
190 190 @ 0:d20a80d4def3 base
191 191
@@ -259,11 +259,11 b' divergence that converge again is not di'
259 259 $ hg log -G --hidden
260 260 @ 4:01f36c5a8fda A_3
261 261 |
262 | x 3:392fd25390da A_2
262 | x 3:392fd25390da A_2 [rewritten as 4:01f36c5a8fda by test (at 1970-01-01 00:00 +0000)]
263 263 |/
264 | x 2:82623d38b9ba A_1
264 | x 2:82623d38b9ba A_1 [rewritten as 4:01f36c5a8fda by test (at 1970-01-01 00:00 +0000)]
265 265 |/
266 | x 1:007dc284c1f8 A_0
266 | x 1:007dc284c1f8 A_0 [rewritten as 2:82623d38b9ba by test (at 1970-01-01 00:00 +0000); rewritten as 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
267 267 |/
268 268 o 0:d20a80d4def3 base
269 269
@@ -309,7 +309,7 b' split is not divergences'
309 309 |
310 310 | o 2:82623d38b9ba A_1
311 311 |/
312 | x 1:007dc284c1f8 A_0
312 | x 1:007dc284c1f8 A_0 [split as 2:82623d38b9ba, 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
313 313 |/
314 314 @ 0:d20a80d4def3 base
315 315
@@ -361,15 +361,15 b' Even when subsequent rewriting happen'
361 361 $ hg log -G --hidden
362 362 @ 6:e442cfc57690 A_5
363 363 |
364 | x 5:6a411f0d7a0a A_4
364 | x 5:6a411f0d7a0a A_4 [rewritten as 6:e442cfc57690 by test (at 1970-01-01 00:00 +0000)]
365 365 |/
366 366 | o 4:01f36c5a8fda A_3
367 367 |/
368 | x 3:392fd25390da A_2
368 | x 3:392fd25390da A_2 [rewritten as 5:6a411f0d7a0a by test (at 1970-01-01 00:00 +0000)]
369 369 |/
370 | x 2:82623d38b9ba A_1
370 | x 2:82623d38b9ba A_1 [rewritten as 4:01f36c5a8fda by test (at 1970-01-01 00:00 +0000)]
371 371 |/
372 | x 1:007dc284c1f8 A_0
372 | x 1:007dc284c1f8 A_0 [split as 2:82623d38b9ba, 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
373 373 |/
374 374 o 0:d20a80d4def3 base
375 375
@@ -437,19 +437,19 b' Check more complex obsolescence graft (w'
437 437 |/
438 438 | o 8:7ae126973a96 A_7
439 439 |/
440 | x 7:3750ebee865d B_0
440 | x 7:3750ebee865d B_0 [rewritten as 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
441 441 | |
442 | x 6:e442cfc57690 A_5
442 | x 6:e442cfc57690 A_5 [rewritten as 10:bed64f5d2f5a by test (at 1970-01-01 00:00 +0000); split as 8:7ae126973a96, 9:14608b260df8 by test (at 1970-01-01 00:00 +0000)]
443 443 |/
444 | x 5:6a411f0d7a0a A_4
444 | x 5:6a411f0d7a0a A_4 [rewritten as 6:e442cfc57690 by test (at 1970-01-01 00:00 +0000)]
445 445 |/
446 446 | o 4:01f36c5a8fda A_3
447 447 |/
448 | x 3:392fd25390da A_2
448 | x 3:392fd25390da A_2 [rewritten as 5:6a411f0d7a0a by test (at 1970-01-01 00:00 +0000)]
449 449 |/
450 | x 2:82623d38b9ba A_1
450 | x 2:82623d38b9ba A_1 [rewritten as 4:01f36c5a8fda by test (at 1970-01-01 00:00 +0000)]
451 451 |/
452 | x 1:007dc284c1f8 A_0
452 | x 1:007dc284c1f8 A_0 [split as 2:82623d38b9ba, 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
453 453 |/
454 454 @ 0:d20a80d4def3 base
455 455
@@ -535,25 +535,25 b' fix the divergence'
535 535 $ hg log -G --hidden
536 536 o 11:a139f71be9da A_A
537 537 |
538 | x 10:bed64f5d2f5a A_9
538 | x 10:bed64f5d2f5a A_9 [rewritten as 11:a139f71be9da by test (at 1970-01-01 00:00 +0000)]
539 539 |/
540 | x 9:14608b260df8 A_8
540 | x 9:14608b260df8 A_8 [rewritten as 11:a139f71be9da by test (at 1970-01-01 00:00 +0000)]
541 541 |/
542 | x 8:7ae126973a96 A_7
542 | x 8:7ae126973a96 A_7 [rewritten as 11:a139f71be9da by test (at 1970-01-01 00:00 +0000)]
543 543 |/
544 | x 7:3750ebee865d B_0
544 | x 7:3750ebee865d B_0 [rewritten as 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
545 545 | |
546 | x 6:e442cfc57690 A_5
546 | x 6:e442cfc57690 A_5 [rewritten as 10:bed64f5d2f5a by test (at 1970-01-01 00:00 +0000); split as 8:7ae126973a96, 9:14608b260df8 by test (at 1970-01-01 00:00 +0000)]
547 547 |/
548 | x 5:6a411f0d7a0a A_4
548 | x 5:6a411f0d7a0a A_4 [rewritten as 6:e442cfc57690 by test (at 1970-01-01 00:00 +0000)]
549 549 |/
550 550 | o 4:01f36c5a8fda A_3
551 551 |/
552 | x 3:392fd25390da A_2
552 | x 3:392fd25390da A_2 [rewritten as 5:6a411f0d7a0a by test (at 1970-01-01 00:00 +0000)]
553 553 |/
554 | x 2:82623d38b9ba A_1
554 | x 2:82623d38b9ba A_1 [rewritten as 4:01f36c5a8fda by test (at 1970-01-01 00:00 +0000)]
555 555 |/
556 | x 1:007dc284c1f8 A_0
556 | x 1:007dc284c1f8 A_0 [split as 2:82623d38b9ba, 3:392fd25390da by test (at 1970-01-01 00:00 +0000)]
557 557 |/
558 558 @ 0:d20a80d4def3 base
559 559
@@ -3,7 +3,7 b''
3 3 > # public changeset are not obsolete
4 4 > publish=false
5 5 > [ui]
6 > logtemplate="{rev}:{node|short} ({phase}{if(obsolete, ' *{obsolete}*')}{if(instabilities, ' {instabilities}')}) [{tags} {bookmarks}] {desc|firstline}\n"
6 > logtemplate="{rev}:{node|short} ({phase}{if(obsolete, ' *{obsolete}*')}{if(instabilities, ' {instabilities}')}) [{tags} {bookmarks}] {desc|firstline}{if(obsfate, " [{join(obsfate, "; ")}]")}\n"
7 7 > EOF
8 8 $ mkcommit() {
9 9 > echo "$1" > "$1"
@@ -159,9 +159,9 b' check that heads does not report them'
159 159 5:5601fb93a350 (draft) [tip ] add new_3_c
160 160 $ hg heads --hidden
161 161 5:5601fb93a350 (draft) [tip ] add new_3_c
162 4:ca819180edb9 (draft *obsolete*) [ ] add new_2_c
163 3:cdbce2fbb163 (draft *obsolete*) [ ] add new_c
164 2:245bde4270cd (draft *obsolete*) [ ] add original_c
162 4:ca819180edb9 (draft *obsolete*) [ ] add new_2_c [rewritten as 5:5601fb93a350 by test (between 1970-01-01 00:22 +0000 and 1970-01-01 00:22 +0000)]
163 3:cdbce2fbb163 (draft *obsolete*) [ ] add new_c [rewritten as 4:ca819180edb9 by test (at 1970-01-01 00:22 +0000)]
164 2:245bde4270cd (draft *obsolete*) [ ] add original_c [rewritten as 3:cdbce2fbb163 by test (at 1970-01-01 00:00 -0002)]
165 165
166 166
167 167 check that summary does not report them
@@ -277,11 +277,11 b' Basic exclusive testing'
277 277 $ hg log -G --hidden
278 278 @ 6:6f9641995072 (draft) [tip ] add n3w_3_c
279 279 |
280 | x 5:5601fb93a350 (draft *obsolete*) [ ] add new_3_c
280 | x 5:5601fb93a350 (draft *obsolete*) [ ] add new_3_c [rewritten as 6:6f9641995072 by test (at 1970-01-01 00:22 +0000)]
281 281 |/
282 | x 4:ca819180edb9 (draft *obsolete*) [ ] add new_2_c
282 | x 4:ca819180edb9 (draft *obsolete*) [ ] add new_2_c [rewritten as 5:5601fb93a350 by test (between 1970-01-01 00:22 +0000 and 1970-01-01 00:22 +0000)]
283 283 |/
284 | x 3:cdbce2fbb163 (draft *obsolete*) [ ] add new_c
284 | x 3:cdbce2fbb163 (draft *obsolete*) [ ] add new_c [rewritten as 4:ca819180edb9 by test (at 1970-01-01 00:22 +0000)]
285 285 |/
286 286 | o 2:245bde4270cd (public) [ ] add original_c
287 287 |/
@@ -435,11 +435,11 b' clone support'
435 435 $ hg -R clone-dest log -G --hidden
436 436 @ 6:6f9641995072 (draft) [tip ] add n3w_3_c
437 437 |
438 | x 5:5601fb93a350 (draft *obsolete*) [ ] add new_3_c
438 | x 5:5601fb93a350 (draft *obsolete*) [ ] add new_3_c [rewritten as 6:6f9641995072 by test (at 1970-01-01 00:22 +0000)]
439 439 |/
440 | x 4:ca819180edb9 (draft *obsolete*) [ ] add new_2_c
440 | x 4:ca819180edb9 (draft *obsolete*) [ ] add new_2_c [rewritten as 5:5601fb93a350 by test (between 1970-01-01 00:22 +0000 and 1970-01-01 00:22 +0000)]
441 441 |/
442 | x 3:cdbce2fbb163 (draft *obsolete*) [ ] add new_c
442 | x 3:cdbce2fbb163 (draft *obsolete*) [ ] add new_c [rewritten as 4:ca819180edb9 by test (at 1970-01-01 00:22 +0000)]
443 443 |/
444 444 | o 2:245bde4270cd (public) [ ] add original_c
445 445 |/
@@ -520,7 +520,7 b' detect outgoing obsolete and unstable'
520 520 $ hg debugobsolete | grep `getid original_d`
521 521 94b33453f93bdb8d457ef9b770851a618bf413e1 0 {6f96419950729f3671185b847352890f074f7557} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
522 522 $ hg log -r 'obsolete()'
523 4:94b33453f93b (draft *obsolete*) [ ] add original_d
523 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned by test (at 1970-01-01 00:00 +0000)]
524 524 $ hg summary
525 525 parent: 5:cda648ca50f5 tip (orphan)
526 526 add original_e
@@ -532,7 +532,7 b' detect outgoing obsolete and unstable'
532 532 $ hg log -G -r '::orphan()'
533 533 @ 5:cda648ca50f5 (draft orphan) [tip ] add original_e
534 534 |
535 x 4:94b33453f93b (draft *obsolete*) [ ] add original_d
535 x 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned by test (at 1970-01-01 00:00 +0000)]
536 536 |
537 537 o 3:6f9641995072 (draft) [ ] add n3w_3_c
538 538 |
@@ -571,7 +571,7 b" Don't try to push extinct changeset"
571 571 1:7c3bad9141dc (public) [ ] add b
572 572 2:245bde4270cd (public) [ ] add original_c
573 573 3:6f9641995072 (draft) [ ] add n3w_3_c
574 4:94b33453f93b (draft *obsolete*) [ ] add original_d
574 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned by test (at 1970-01-01 00:00 +0000)]
575 575 5:cda648ca50f5 (draft orphan) [tip ] add original_e
576 576 $ hg push ../tmpf -f # -f because be push unstable too
577 577 pushing to ../tmpf
@@ -595,7 +595,7 b' Do not warn about new head when the new '
595 595 $ hg log -G
596 596 @ 5:cda648ca50f5 (draft orphan) [tip ] add original_e
597 597 |
598 x 4:94b33453f93b (draft *obsolete*) [ ] add original_d
598 x 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned by test (at 1970-01-01 00:00 +0000)]
599 599 |
600 600 o 3:6f9641995072 (draft) [ ] add n3w_3_c
601 601 |
@@ -636,9 +636,9 b' Reminder of the repo situation'
636 636 $ hg log --hidden --graph
637 637 @ 6:3de5eca88c00 (draft) [tip ] add obsolete_e
638 638 |
639 | x 5:cda648ca50f5 (draft *obsolete*) [ ] add original_e
639 | x 5:cda648ca50f5 (draft *obsolete*) [ ] add original_e [rewritten as 6:3de5eca88c00 by test <test@example.net> (at 1970-01-01 00:00 +0000)]
640 640 | |
641 | x 4:94b33453f93b (draft *obsolete*) [ ] add original_d
641 | x 4:94b33453f93b (draft *obsolete*) [ ] add original_d [pruned by test (at 1970-01-01 00:00 +0000)]
642 642 |/
643 643 o 3:6f9641995072 (draft) [ ] add n3w_3_c
644 644 |
@@ -928,7 +928,7 b' Several troubles on the same changeset ('
928 928 test the "obsolete" templatekw
929 929
930 930 $ hg log -r 'obsolete()'
931 6:3de5eca88c00 (draft *obsolete*) [ ] add obsolete_e
931 6:3de5eca88c00 (draft *obsolete*) [ ] add obsolete_e [pruned by test (at 1970-01-01 00:00 +0000)]
932 932
933 933 test the "troubles" templatekw
934 934
@@ -1098,7 +1098,7 b' Test that a local tag blocks a changeset'
1098 1098 $ hg log -G
1099 1099 @ 2:323a9c3ddd91 (draft) [tip ] A
1100 1100 |
1101 | x 1:29f0c6921ddd (draft *obsolete*) [visible ] A
1101 | x 1:29f0c6921ddd (draft *obsolete*) [visible ] A [rewritten using amend as 2:323a9c3ddd91 by test (at 1970-01-01 00:00 +0000)]
1102 1102 |/
1103 1103 o 0:d20a80d4def3 (draft) [ ] base
1104 1104
@@ -1152,7 +1152,7 b' Test bundle overlay onto hidden revision'
1152 1152 $ hg log -G --hidden
1153 1153 @ 2:b7d587542d40 (draft) [tip ] B+
1154 1154 |
1155 | x 1:44526ebb0f98 (draft *obsolete*) [ ] B
1155 | x 1:44526ebb0f98 (draft *obsolete*) [ ] B [rewritten using amend as 2:b7d587542d40 by test (at 1970-01-01 00:00 +0000)]
1156 1156 |/
1157 1157 o 0:4b34ecfb0d56 (draft) [ ] A
1158 1158
@@ -1279,7 +1279,7 b' bookmarks change'
1279 1279 $ hg commit --amend -m "message"
1280 1280 $ hg book bookb -r 13bedc178fce --hidden
1281 1281 $ hg log -r 13bedc178fce
1282 4:13bedc178fce (draft *obsolete*) [ bookb] add b
1282 4:13bedc178fce (draft *obsolete*) [ bookb] add b [rewritten using amend as 5:a9b1f8652753 by test (at 1970-01-01 00:00 +0000)]
1283 1283 $ hg book -d bookb
1284 1284 $ hg log -r 13bedc178fce
1285 1285 abort: hidden revision '13bedc178fce'!
@@ -1319,7 +1319,7 b' Test ability to pull changeset with loca'
1319 1319 $ hg log -G --hidden
1320 1320 @ 3:b0551702f918 (draft) [tip ] 2
1321 1321 |
1322 | x 2:e008cf283490 (draft *obsolete*) [ ] 2
1322 | x 2:e008cf283490 (draft *obsolete*) [ ] 2 [rewritten using amend as 3:b0551702f918 by test (at 1970-01-01 00:00 +0000)]
1323 1323 |/
1324 1324 o 1:e016b03fd86f (draft) [ ] 1
1325 1325 |
General Comments 0
You need to be logged in to leave comments. Login now