Show More
@@ -757,19 +757,12 b' def _parseargs(expr, args):' | |||||
757 | except IndexError: |
|
757 | except IndexError: | |
758 | raise error.ParseError(_('incomplete revspec format character')) |
|
758 | raise error.ParseError(_('incomplete revspec format character')) | |
759 | if islist and d == 'd' and arg: |
|
759 | if islist and d == 'd' and arg: | |
760 | # special case, we might be able to speedup the list of int case |
|
760 | # we don't create a baseset yet, because it come with an | |
761 | # |
|
761 | # extra cost. If we are going to serialize it we better | |
762 | # We have been very conservative here for the first version. |
|
762 | # skip it. | |
763 | # Other types (eg: generator) are probably fine, but we did not |
|
763 | ret.append(('baseset', arg)) | |
764 | # wanted to take any risk> |
|
764 | pos += 1 | |
765 | safeinputtype = (list, tuple, set, smartset.abstractsmartset) |
|
765 | continue | |
766 | if isinstance(arg, safeinputtype): |
|
|||
767 | # we don't create a baseset yet, because it come with an |
|
|||
768 | # extra cost. If we are going to serialize it we better |
|
|||
769 | # skip it. |
|
|||
770 | ret.append(('baseset', arg)) |
|
|||
771 | pos += 1 |
|
|||
772 | continue |
|
|||
773 | try: |
|
766 | try: | |
774 | ret.append((None, f(list(arg), d))) |
|
767 | ret.append((None, f(list(arg), d))) | |
775 | except (TypeError, ValueError): |
|
768 | except (TypeError, ValueError): |
General Comments 0
You need to be logged in to leave comments.
Login now