- Sep 28, 2021
-
-
Martin von Zweigbergk authored
Same reasoning as for `revrange()` in an earlier patch. Differential Revision: https://phab.mercurial-scm.org/D11562
-
Martin von Zweigbergk authored
Same reasoning as for `revrange()` in an earlier patch. Differential Revision: https://phab.mercurial-scm.org/D11561
-
Martin von Zweigbergk authored
Most callers of `scmutil.revrange()` pass in a revset provided by the user. If there are problems resolving that, it should result in an `InputError` and exit code 10 (when using detailed exit codes). However, there are also some callers that pass in revsets not provided by the user. `InputError` is not appropriate in those cases. This patch therefore introduces a wrapper around `scmutil.revrange()` that simply converts the exception type. I put it in `logcmdutil.py` since that seems to be the lowest-level module in the (poorly defined) UI layer. Differential Revision: https://phab.mercurial-scm.org/D11560
-
Martin von Zweigbergk authored
I was surprised that `scmutil.revrange()` supports integers in the list of revsets. I think it's clearer to not pass a list that's known to contain only integers into the function. Differential Revision: https://phab.mercurial-scm.org/D11559
-
- Oct 01, 2021
-
-
Pierre-Yves David authored
The future was set to 2021-01-01, we push it by 10 years.
-
- Sep 30, 2021
-
-
Pierre-Yves David authored
This is currently True, and we will use this fact to simplify the API in the next commit. However, we add this assertion first to validate that this is True in the whole test-suite.
-
- Sep 28, 2021
-
-
Pierre-Yves David authored
It was very outdated. We are about to change these attribute so we should has well have them documented so that the change get easier to grasp.
-
- Oct 01, 2021
-
-
Pierre-Yves David authored
This simplify more code.
-
Pierre-Yves David authored
This comment is no longer relevant since we moved away from the `state` internal representation, multiple weeks ago.
-
- Sep 30, 2021
-
-
Pierre-Yves David authored
This case was fishy and can be dealt with by passing more accurate data a higher level. This clarify the API and prepare for a larger rework of the data we feeds to the dirstate.
-
Pierre-Yves David authored
This case was fishy and can be dealt with by passing more accurate data a higher level. This clarify the API and prepare for a larger rework of the data we feeds to the dirstate.
-
- Sep 29, 2021
-
-
Pierre-Yves David authored
If we want to drop `state` usage, we need to deprecate this. Differential Revision: https://phab.mercurial-scm.org/D11544
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11543
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11542
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11541
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11540
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11539
-
Pierre-Yves David authored
(instead of `state`) Differential Revision: https://phab.mercurial-scm.org/D11538
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11537
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11536
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11535
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11534
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11533
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11532
-
- Sep 30, 2021
-
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11531
-
- Sep 29, 2021
-
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11530
-
Pierre-Yves David authored
This is clearer than processing the `state`. Differential Revision: https://phab.mercurial-scm.org/D11529
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11528
-
Pierre-Yves David authored
Differential Revision: https://phab.mercurial-scm.org/D11527
-
- Sep 30, 2021
-
-
Pierre-Yves David authored
This move implementation details further down the stack and make it the verification code easier to discover. Differential Revision: https://phab.mercurial-scm.org/D11526
-
- Sep 29, 2021
-
-
Pierre-Yves David authored
This is what the dirstate use at a higher level. Differential Revision: https://phab.mercurial-scm.org/D11525
-
Pierre-Yves David authored
This property is True is the file is tracked anywhere, either the working copy, or any of the parent. Differential Revision: https://phab.mercurial-scm.org/D11524
-
Pierre-Yves David authored
It is useful for some extension that seek to invalidate some state. Differential Revision: https://phab.mercurial-scm.org/D11523
-
Pierre-Yves David authored
This method give access to the underlying `DirstateEntry` object (or an empty one if None was there). It should allow us to use the more semantic property of the entry instead of the state where we needs it. Differential Revision: https://phab.mercurial-scm.org/D11522
-
- Sep 30, 2021
-
-
Simon Sapin authored
… in the C implementation of DirstateItem, like they already were in the Python and Rust ones. Differential Revision: https://phab.mercurial-scm.org/D11521
-
- Oct 01, 2021
-
-
Martin von Zweigbergk authored
Nightly `rustc` warns about the `RevlogEntry::rev` field not being used. Rather than removing it, I added an accessor since it seems useful to be able to get the entry's revision. Differential Revision: https://phab.mercurial-scm.org/D11548
-
Raphaël Gomès authored
Differential Revision: https://phab.mercurial-scm.org/D11549
-
- Sep 10, 2021
-
-
Raphaël Gomès authored
This is basically the same thing as not specifying a revision, except this is done in the revset resolution function. This allows calls like `rhg cat some-file -r .` to work without falling back. Differential Revision: https://phab.mercurial-scm.org/D11402
-
Raphaël Gomès authored
The next change will add a shortcut for the `.` revision. One day we might start matching `tip` and others, so this is an easy refactor. Differential Revision: https://phab.mercurial-scm.org/D11401
-
- Sep 13, 2021
-
-
Raphaël Gomès authored
We do not handle subrepos yet, the addition of the support for `-r .` will break if we don't fall back. Differential Revision: https://phab.mercurial-scm.org/D11403
-