Changeset View
Changeset View
Standalone View
Standalone View
tests/test-obsmarker-template.t
This test file test the various templates related to obsmarkers. | This test file test the various templates related to obsmarkers. | ||||
Global setup | Global setup | ||||
============ | ============ | ||||
$ . $TESTDIR/testlib/obsmarker-common.sh | $ . $TESTDIR/testlib/obsmarker-common.sh | ||||
$ cat >> $HGRCPATH <<EOF | $ cat >> $HGRCPATH <<EOF | ||||
> [ui] | > [ui] | ||||
> interactive = true | > interactive = true | ||||
> [phases] | > [phases] | ||||
> publish=False | > publish=False | ||||
> [experimental] | > [experimental] | ||||
> evolution=true | > evolution=true | ||||
> evolution.allowdivergence=true | |||||
> [templates] | > [templates] | ||||
> obsfatesuccessors = "{if(successors, " as ")}{join(successors, ", ")}" | > obsfatesuccessors = "{if(successors, " as ")}{join(successors, ", ")}" | ||||
> obsfateverb = "{obsfateverb(successors, markers)}" | > obsfateverb = "{obsfateverb(successors, markers)}" | ||||
> obsfateoperations = "{if(obsfateoperations(markers), " using {join(obsfateoperations(markers), ", ")}")}" | > obsfateoperations = "{if(obsfateoperations(markers), " using {join(obsfateoperations(markers), ", ")}")}" | ||||
> obsfateusers = "{if(obsfateusers(markers), " by {join(obsfateusers(markers), ", ")}")}" | > obsfateusers = "{if(obsfateusers(markers), " by {join(obsfateusers(markers), ", ")}")}" | ||||
> 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})")}")}" | > 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})")}")}" | ||||
> obsfatetempl = "{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}; " | > obsfatetempl = "{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}; " | ||||
> [alias] | > [alias] | ||||
▲ Show 20 Lines • Show All 3171 Lines • Show Last 20 Lines |