marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
If `required` is set, failing to load an extensions will abort. See the test
and documentation for details.
REPOSITORY
rHG Mercurial
BRANCH
default
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is similar to what we do in other section (e.g. `paths`) and allow to
change the behavior for all extensions.
Sub options on individual extensions
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
config suboptions are separated by ":" (see the path one for example). So we
dont want to confuse these config with actual extensions.
We don't have
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We will need this in the next patch.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11820
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Now that all¹ stored mtime are non ambiguous, we no longer need to apply the
`need_delay` step.
The need delay logic was not great are mtime gathered during
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We take the filesystem time at the start of the status walk and use that as
a boundary to detect files that have been modified in the same second as the
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Some extensions will need it too., so lets isolate the logic.
This make things clearer too.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This will prevent ambiguous cache entry to be used in racy situation. This fix
flakiness in test and some real live misbehavior.
REPOSITORY
rHG Mercurial
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
If the test was fast enough, some mtime where not stored. We now wait long
enough to ensure the mtime is no longer ambiguous.
REPOSITORY
rHG Mercurial
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Since the whole `need_delay` have been removed, we no longer need this.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is now redundant with the new, simpler `mtime_boundary` one.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The current `set_clean` usage is racy (file might be modified between its
restoration and the `set_clean` call.
So we simply leave the file as ambiguous
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Gathering information here assume that they are valid cache information for a
clean file. It is true most of the time, but not garanteed.
Accurate data
marmoute created this revision.
Herald added a reviewer: durin42.
Herald added a reviewer: martinvonz.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Otherwise the could get size from one version of the file while the on-disk
version is
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
In the test we want to trigger a write after the underlying dirstate changed.
To
do so, we need a write. And as we are about to make dirstate update smarter
marmoute created this revision.
Herald added a reviewer: durin42.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Gathering the mode, size and mtime, independently from determining that the
file
is clean is a race-machine. So we just make
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Gathering information here assume that they are valid cache information for a
clean file. It is true most of the time, but not garanteed.
So we drop this
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is still racy, but the API make it possible for it to not be racy. This
also unlock other cleanups that we are about to do.
REPOSITORY
rHG Mercurial
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
See main core time for details.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11787
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11782
AFFECTED FILES
mercurial/cext/parsers.c
mercurial/dirstate.py
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Right now, this filtering is done at `dirstate.write` time. However that
filtering is done too late for most of the case, we are about to change that
code to
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
See main core time for details.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11786
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We will need it during update.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11783
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is a bits that is not really correct but works "fine" in practice. Lets
write it down so that people stop wondering how that logic might be correct.
It
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
See comment above the changed line
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11780
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
For the test to work, we need some mtime to be recorded.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11779
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This will help stabilize part of the test that are not relevant for the tests.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
It is common for reader of that test to confuse this `hg co` call with a `hg
commit`, while this is actually `hg checkout`, an alias for the more common
`hg
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
As per feedback from Dan Villiom Podlaski Christiansen
in https://phab.mercurial-scm.org/D11674#179866
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The previous code was overlooking fallback when neither symlink not exec was
supported.
The number of "variants" is getting too high, so I am
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Without this extra checks, file with fallback flags change as the only change
would be overlooked.
In the future we might store proper data in the
marmoute created this revision.
Herald added a reviewer: durin42.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
marmoute added a comment.
Lets put the option on the table.
REVISION SUMMARY
It seems the format as reached a good balance. With a core of
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Since the format is not frozen yet, it seems like the right moment to do it.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Instead of zero, set the nanoseconds field to its correct value whenever
possible and preserve it across serialization+parsing.
REPOSITORY
rHG Mercurial
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This flag will let us use more `mtime` value in the future. For now we have a
minimal handling of the flag at read time, but we will never put ourself in a
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
When comparing mtimes for equality.
Some APIs simply return zero when more precision is not available.
When comparing values from different sources, if
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The rest of the code use this name. It is not a great name, but it is better
to
stay consistent.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Tracking directory "explicitly" give use the opportunity to distinct between
entry that are untracked because they are part of the directory structure and
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This was overlooked in a previous commit.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11695
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The concept is defined and "used" by the flag code, but it is neither
persisted
nor set anywhere yet. We currently focus on defining the semantic of the
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This could arguably goes in the previous changeset, but I wanted to keep that
previous changeset small to focus more on the user code and the documentation.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
When the fallback values are set, they are now read and written to disk.
See format documentation for details.
REPOSITORY
rHG Mercurial
BRANCH
default
On 10/15/21 2:22 PM, Pierre-Yves David wrote:
On 10/13/21 10:57 AM, Simon Sapin wrote:
Please let us know of any question or comment!
I remember discussion about storing WC exec-bit and symlink status to
help system without support for thoses (Windows we are looking at
you
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Right now, a files with a file system state that requires a lookup (same size,
different mtime) will requires a lookup. If the result of that lookup is a
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Right now, we don't record ignored or unknown files in the dirstate. However
the
structure would allow it. So we introduce two flags that can be used to
days away.
I just remembered this and I am not actively working on it today so I
don't have a very concret idea about it yet. Matt Harbison might have
more concretes idea about this.
Cheers,
--
Pierre-Yves David
___
Mercurial-devel mailing list
Mercurial
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
A new `bookmarks` section with a `mirror` option have been added. That option
has never been released yet.
This new options is limited since it affect all
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This new mode allow to disable bookmark exchange with some path (or all path).
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is more consistent.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11676
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This will allow more pull code to use the path options. Ideally we would
modify
the peer API to keep the path instance. However that is much more churn that I
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This means the caller has to do a bit more work, however it give access to the
`path` instance and the information it contains.
REPOSITORY
rHG Mercurial
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This remove a special case and will make it possible to return `path` instance
directly.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
During pull, unvalidated path might be used, having the option to do so
directly will allow use to simplify some code and unlock more `path` usage
later in the
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is the project policy discussed in November 2020 and already put to use
for
the persistent nodemap.
REPOSITORY
rHG Mercurial
BRANCH
default
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Nobody is calling it anymore. Its purposes has been filled.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Nobody is calling it anymore. Its purposes has been filled.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The constructor is on its way out, so we inline the last relevant call before
dropping it.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Nobody is calling it anymore. Its purposes has been filled.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The constructor is on its way out, so we inline a relevant call before
dropping it.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The constructor is on its way out, so we inline the last relevant call before
dropping it.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Nobody is calling it anymore. Its purposes has been filled.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The constructor is on its way out, so we inline the last relevant call before
dropping it.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Nobody is calling it anymore. Its purposes has been filled.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The constructor is on its way out, so we inline the last relevant call before
dropping it.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The constructor is on its way out, so we inline the last relevant call before
dropping it.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
It has no user anymore.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11597
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We simply spell out the logic here. This was the last usage of `merged`.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
It seems more accurate and no test complains (XXX hopefully XXX).
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
It has no user anymore.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11594
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11592
AFFECTED FILES
mercurial/dirstate.py
mercurial/dirstatemap.py
CHANGE
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is simpler.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11593
AFFECTED FILES
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
What matters here is that the file constains information coming from the
second
parent and should be considered `modified` on plain `hg status.
So we can
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We are actually checking that we are only in a case were the file might needs
lookup before doing this. So the comment is not relevant.
REPOSITORY
rHG
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The same operation is done a handful a line lower.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11589
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This conclude the refactoring of this API. We can now finalize the dirstate v2
on disk format.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The same operation is done a handful a line lower.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11588
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
It is useful to simplify various conditional that use `any_tracked and not
added`.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The `merged` and `from_p2` property are always used together so we can expose
a
combined property instead.
REPOSITORY
rHG Mercurial
BRANCH
default
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The parent data are only going to be useful is the file might be clean. And it
might only be clean if it is tracked in both p1 and the working copy.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We are passing different data, so lets simplify the dirstatemap API too.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
They are no longer in use now that the Rust wrapper version of the Dirstatemap
are back in line with the Python one.
REPOSITORY
rHG Mercurial
BRANCH
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We move to using `drop_merge_data` as intended.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11581
AFFECTED
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
I guess this was overlooked in the initial implementation?
Without this, the next patch would, loose copy information in setparent.
REPOSITORY
rHG
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
It was currently missing and we want to be able to use in it the Rust case
too.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Same logic as for `set_untracked` this make sure both implementation are
aligned.
The `reset_state` implementation for the Rust wrapped had signicantly
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This method is called to remove DirstateItem from the map.
Each variant have a different implementation (which is … the point).
REPOSITORY
rHG Mercurial
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Same logic before this make sure both implementation use the same logic for
this.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Same logic before this make sure both implementation use the same logic for
this.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
Same logic as for `set_untracked` this make sure both implementation use the
same logic for this.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This method is called to add a new DirstateItem to the map.
Each variant have a different implementation (which is … the point).
REPOSITORY
rHG Mercurial
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We can now make sure they use the same code, and drop the older, out of sync,
implementation of `set_untracked` for the rust wrapper.
REPOSITORY
rHG
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This method is called once a DirstateItem have been modified to apply the
change on the dirstatemap if necessary.
Each variant have a different
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The Rust wrapper does not need them. However having a default, no-op,
implementation will help use to write code used by both implementation.
REPOSITORY
rHG
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This shuffle the code a bit to have it flowing more "naturally". This will
help
us to create a common version of this code in the next changesets.
REPOSITORY
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
The dirstatemap code cover various aspects, it grow a bit messy over the
years. So we shuffle the code around into some documented categories.
This will
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This match the name of the `map` for the other implementation and will make it
simpler to share code between the two.
REPOSITORY
rHG Mercurial
BRANCH
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
These are small and simple, lets factor them out.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11567
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This is the first and simplest things to put in common.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D11565
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
We have two dirstatemaps class. One for the python version of the dirstate map
and one for the Rust version (that has a python wrapper to deal with some
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This should be closer to what we do need and what we can actually reliably
record.
In practice it means that we abandon the prospect of storing much more
201 - 300 of 4909 matches
Mail list logo