equal
deleted
inserted
replaced
1965 |
1965 |
1966 $ try "unknownref(0)" --config 'revsetalias.unknownref($1)=$1:$2' |
1966 $ try "unknownref(0)" --config 'revsetalias.unknownref($1)=$1:$2' |
1967 (func |
1967 (func |
1968 ('symbol', 'unknownref') |
1968 ('symbol', 'unknownref') |
1969 ('symbol', '0')) |
1969 ('symbol', '0')) |
1970 abort: failed to parse the definition of revset alias "unknownref": invalid symbol '$2' |
1970 abort: bad definition of revset alias "unknownref": invalid symbol '$2' |
1971 [255] |
1971 [255] |
1972 |
1972 |
1973 $ hg debugrevspec --debug --config revsetalias.anotherbadone='branch(' "tip" |
1973 $ hg debugrevspec --debug --config revsetalias.anotherbadone='branch(' "tip" |
1974 ('symbol', 'tip') |
1974 ('symbol', 'tip') |
1975 warning: failed to parse the definition of revset alias "anotherbadone": at 7: not a prefix: end |
1975 warning: bad definition of revset alias "anotherbadone": at 7: not a prefix: end |
1976 * set: |
1976 * set: |
1977 <baseset [9]> |
1977 <baseset [9]> |
1978 9 |
1978 9 |
1979 |
1979 |
1980 $ try 'tip' |
1980 $ try 'tip' |
1983 <baseset [9]> |
1983 <baseset [9]> |
1984 9 |
1984 9 |
1985 |
1985 |
1986 $ hg debugrevspec --debug --config revsetalias.'bad name'='tip' "tip" |
1986 $ hg debugrevspec --debug --config revsetalias.'bad name'='tip' "tip" |
1987 ('symbol', 'tip') |
1987 ('symbol', 'tip') |
1988 warning: failed to parse the declaration of revset alias "bad name": at 4: invalid token |
1988 warning: bad declaration of revset alias "bad name": at 4: invalid token |
1989 * set: |
1989 * set: |
1990 <baseset [9]> |
1990 <baseset [9]> |
1991 9 |
1991 9 |
1992 $ echo 'strictreplacing($1, $10) = $10 or desc("$1")' >> .hg/hgrc |
1992 $ echo 'strictreplacing($1, $10) = $10 or desc("$1")' >> .hg/hgrc |
1993 $ try 'strictreplacing("foo", tip)' |
1993 $ try 'strictreplacing("foo", tip)' |