Import Evolve stack test file for starting to have good coverage on stack
definition.
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHG407934a97bc7: stack: import Evolve stack test file
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
I haven't looked at the remainder of the series, but it feels weird to basically reinvent a special case of hg log as a debug command. I do see there is a commit introducing a revset for stack. Perhaps we could move it up in the series so we don't need what might be a not-very-useful debug command?
mercurial/revset.py | ||
---|---|---|
1534 | I'm not sure if the predicate should be prefixed with an underscore to mark it as internal. My reading of the help code is that the lack of a docstring will hide it from the docs. I /think/ this is OK. But I wouldn't be surprised if @yuja or someone told me it needs changed. I'll queue this for now. We can always fix it up later if it is a problem. |
tests/test-stack.t | ||
---|---|---|
82 | What if this was @ in the hg repo and only commits 4 and 5 were my own, then I would not want it to be part of my stack. It feels like a definition of upstream would be very helpful. Perhaps a way of providing a separate upstream per commit would be useful. Let's say upstream() was a revset, then I feel like something like "only(., upstream(.))" would be my stack. Of course, it gets weird if I have a history like we have here and I have defined the upstream of 4 to be 2 and the upstream of 5 to be 3 (or the other way around). I guess only commits that share an upstream can be part of the same stack. | |
97–109 | I think I would have preferred to see all of these in my stack rather than just commit 6. Would you? |
mercurial/revset.py | ||
---|---|---|
1547 | This breaks the order of tip:0 & stack() for example, and is moot |
tests/test-stack.t | ||
---|---|---|
97–109 | The goal of this series is to define a clean stack definition API. We started by reusing the existing bits from histsedit and show stack. I've added a first way to configure the stack definition through configuration. I think seeing all the drafts is a good idea and we will works in a later series to have a way to include them in the stack. |
mercurial/revset.py | ||
---|---|---|
1547 | I have send a follow-up https://phab.mercurial-scm.org/D3136 |
I'm not sure if the predicate should be prefixed with an underscore to mark it as internal. My reading of the help code is that the lack of a docstring will hide it from the docs.
I /think/ this is OK. But I wouldn't be surprised if @yuja or someone told me it needs changed. I'll queue this for now. We can always fix it up later if it is a problem.