Mercurial > evolve
comparison hgext3rd/topic/revset.py @ 2681:aa4db71a6224
topics: return a parse error if stack() revset is passed with argument
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Thu, 29 Jun 2017 01:58:26 +0530 |
parents | b933a8068c17 |
children | a6e3c2fcb1d7 |
comparison
equal
deleted
inserted
replaced
2680:d5eb5269128a | 2681:aa4db71a6224 |
---|---|
69 All relevant changes in the current topic, | 69 All relevant changes in the current topic, |
70 | 70 |
71 This is roughly equivalent to 'topic(.) - obsolete' with a sorting moving | 71 This is roughly equivalent to 'topic(.) - obsolete' with a sorting moving |
72 unstable changeset after there future parent (as if evolve where already | 72 unstable changeset after there future parent (as if evolve where already |
73 run).""" | 73 run).""" |
74 err = 'stack() takes no argument, it works on current topic' | |
75 revset.getargs(x, 0, 0, err) | |
74 topic = repo.currenttopic | 76 topic = repo.currenttopic |
75 if not topic: | 77 if not topic: |
76 raise error.Abort(_('no active topic to list')) | 78 raise error.Abort(_('no active topic to list')) |
77 # ordering hack, boo | 79 # ordering hack, boo |
78 topic = None | 80 topic = None |