##// END OF EJS Templates
label: rename trouble.X into instability.X...
Boris Feld -
r33777:40739aef default
parent child Browse files
Show More
@@ -1573,7 +1573,7 b' def _changesetlabels(ctx):'
1573 if ctx.isunstable():
1573 if ctx.isunstable():
1574 labels.append('changeset.unstable')
1574 labels.append('changeset.unstable')
1575 for instability in ctx.instabilities():
1575 for instability in ctx.instabilities():
1576 labels.append('trouble.%s' % instability)
1576 labels.append('instability.%s' % instability)
1577 return ' '.join(labels)
1577 return ' '.join(labels)
1578
1578
1579 class changeset_printer(object):
1579 class changeset_printer(object):
@@ -783,7 +783,7 b' def showinstabilities(**args):'
783 (EXPERIMENTAL)
783 (EXPERIMENTAL)
784 """
784 """
785 args = pycompat.byteskwargs(args)
785 args = pycompat.byteskwargs(args)
786 return showlist('trouble', args['ctx'].instabilities(), args)
786 return showlist('instability', args['ctx'].instabilities(), args)
787
787
788 # tell hggettext to extract docstrings from these functions:
788 # tell hggettext to extract docstrings from these functions:
789 i18nfunctions = keywords.values()
789 i18nfunctions = keywords.values()
@@ -28,8 +28,8 b" lfile_copies_switch = '{if(file_copies_s"
28 % ' {name} ({source})'}\n"))}'
28 % ' {name} ({source})'}\n"))}'
29
29
30 # General templates
30 # General templates
31 _trouble_label = 'trouble.{trouble}'
31 _instability_label = 'instability.{instability}'
32 _troubles_labels = '{if(instabilities, "changeset.unstable {instabilities%_trouble_label}")}'
32 _troubles_labels = '{if(instabilities, "changeset.unstable {instabilities%_instability_label}")}'
33 _obsolete_label = '{if(obsolete, "changeset.obsolete")}'
33 _obsolete_label = '{if(obsolete, "changeset.obsolete")}'
34 _cset_labels = '{separate(" ", "log.changeset", "changeset.{phase}", "{_obsolete_label}", "{_troubles_labels}")}'
34 _cset_labels = '{separate(" ", "log.changeset", "changeset.{phase}", "{_obsolete_label}", "{_troubles_labels}")}'
35 cset = '{label("{_cset_labels}",
35 cset = '{label("{_cset_labels}",
@@ -948,7 +948,7 b' test the default cmdline template'
948 test the obsolete labels
948 test the obsolete labels
949
949
950 $ hg log --config ui.logtemplate= --color=debug -r 'phasedivergent()'
950 $ hg log --config ui.logtemplate= --color=debug -r 'phasedivergent()'
951 [log.changeset changeset.draft changeset.unstable trouble.orphan trouble.phase-divergent|changeset: 7:50c51b361e60]
951 [log.changeset changeset.draft changeset.unstable instability.orphan instability.phase-divergent|changeset: 7:50c51b361e60]
952 [log.user|user: test]
952 [log.user|user: test]
953 [log.date|date: Thu Jan 01 00:00:00 1970 +0000]
953 [log.date|date: Thu Jan 01 00:00:00 1970 +0000]
954 [log.trouble|instability: orphan, phase-divergent]
954 [log.trouble|instability: orphan, phase-divergent]
@@ -956,7 +956,7 b' test the obsolete labels'
956
956
957
957
958 $ hg log -T default -r 'phasedivergent()' --color=debug
958 $ hg log -T default -r 'phasedivergent()' --color=debug
959 [log.changeset changeset.draft changeset.unstable trouble.orphantrouble.phase-divergent|changeset: 7:50c51b361e60]
959 [log.changeset changeset.draft changeset.unstable instability.orphaninstability.phase-divergent|changeset: 7:50c51b361e60]
960 [log.user|user: test]
960 [log.user|user: test]
961 [log.date|date: Thu Jan 01 00:00:00 1970 +0000]
961 [log.date|date: Thu Jan 01 00:00:00 1970 +0000]
962 [log.trouble|instability: orphan, phase-divergent]
962 [log.trouble|instability: orphan, phase-divergent]
General Comments 0
You need to be logged in to leave comments. Login now