Show More
@@ -1866,8 +1866,8 b' def _getsortargs(x):' | |||||
1866 |
|
1866 | |||
1867 | if len(keyflags) > 1 and any(k == 'topo' for k, reverse in keyflags): |
|
1867 | if len(keyflags) > 1 and any(k == 'topo' for k, reverse in keyflags): | |
1868 | # i18n: "topo" is a keyword |
|
1868 | # i18n: "topo" is a keyword | |
1869 | raise error.ParseError(_( |
|
1869 | raise error.ParseError(_('topo sort order cannot be combined ' | |
1870 | 'topo sort order cannot be combined with other sort keys')) |
|
1870 | 'with other sort keys')) | |
1871 |
|
1871 | |||
1872 | opts = {} |
|
1872 | opts = {} | |
1873 | if 'topo.firstbranch' in args: |
|
1873 | if 'topo.firstbranch' in args: | |
@@ -1875,9 +1875,8 b' def _getsortargs(x):' | |||||
1875 | opts['topo.firstbranch'] = args['topo.firstbranch'] |
|
1875 | opts['topo.firstbranch'] = args['topo.firstbranch'] | |
1876 | else: |
|
1876 | else: | |
1877 | # i18n: "topo" and "topo.firstbranch" are keywords |
|
1877 | # i18n: "topo" and "topo.firstbranch" are keywords | |
1878 | raise error.ParseError(_( |
|
1878 | raise error.ParseError(_('topo.firstbranch can only be used ' | |
1879 | 'topo.firstbranch can only be used when using the topo sort ' |
|
1879 | 'when using the topo sort key')) | |
1880 | 'key')) |
|
|||
1881 |
|
1880 | |||
1882 | return args['set'], keyflags, opts |
|
1881 | return args['set'], keyflags, opts | |
1883 |
|
1882 |
General Comments 0
You need to be logged in to leave comments.
Login now