Commit Graph

513 Commits

Author SHA1 Message Date
Mark Nauwelaerts
893dd9434f Merge commit '7713b7ecefea9f0df2970079086fe318e3d26311' into felipec
These changes have been discarded.

While it may involve ancient API, there is limited gain wrt complexity,
so might as well leave in place.
2025-05-01 19:38:27 +02:00
Mark Nauwelaerts
4ddbfeb9c8 Merge commit '463f397ba49b9f5f416c1cf85c1104c3939be224' into felipec
Discard change, which now follows a similar approach to what was
introduced long ago in c3f02d39ad.
Caution is also required in subsequent imports as considered in
a59e1246a2.
2025-05-01 16:20:56 +02:00
Mark Nauwelaerts
93271a4e1b Merge commit 'e774ad2d96ae27e23c8ede88384bb1c085d631e8' into felipec
Accept trivial change.
2025-05-01 16:20:16 +02:00
Mark Nauwelaerts
36706dffe6 Merge commit '086ca235076d7450d3e46e8f80f483b895856777' into felipec
Discard superfluous cleanup.
2025-05-01 16:07:24 +02:00
Mark Nauwelaerts
da532bf6f4 Merge commit '7c373be665ebcf794a297b3c98afd9d94365d9f9' into felipec
These changes can be merged and accepted with limited conflict resolution.
2025-05-01 16:05:05 +02:00
Mark Nauwelaerts
aa1d0bc152 Merge commit '7908c70efbd0420e21c2b0b7841b61e3b933be51' into felipec
These changes can be merged with limited conflict resolution.
2025-05-01 16:02:47 +02:00
Mark Nauwelaerts
bdbe62256a Merge commit '8025945a62d16ef078299ad5903081f250d762ed' into felipec
These changes can be merged with some adjustments.
That is, only conditionally prefer some newer API, but otherwise
prefer current code paths, which have been tried and tested for a
long time through various version (both python and hg).
2025-04-30 20:55:24 +02:00
Mark Nauwelaerts
8acf139e44 Merge commit 'b8b9a2f571c322bb3fe8a19c102a0f75fe9f3a9a' into felipec
These changes can be merged with limited to no conflict resolution.
2025-04-30 20:31:41 +02:00
Mark Nauwelaerts
1df692295c Merge commit 'f032d3617bb47585f20006abee83d7309498c17d' into felipec
This change is part of port to python v3 and can as such be discarded.
2025-04-30 20:18:32 +02:00
Mark Nauwelaerts
027e1a16f0 Merge commit '60a1d7ae7a60988f122d8d9ba9ad3c693c5141ae' into felipec
These changes can be merged with limited conflict resolution.
2025-04-30 19:16:33 +02:00
Mark Nauwelaerts
723e6c76fc Merge commit '9b54c626bcf25d390861b430145e96af3ec8459c' into felipec
The removal of support for older version can reduce clutter and ease
maintenance, but in this case such gains are marginal, and there would
then only be loss (of older functionality).

As such, this change is discarded, and older version support is kept.
2025-04-30 18:34:29 +02:00
Mark Nauwelaerts
2529c986c2 Merge commit 'd51f508916d543f987868dd6f7072c72e8f692b2' into felipec
These changes can be merged with limited to no conflict resolution.
2025-04-30 18:30:58 +02:00
Mark Nauwelaerts
ab398ade1d Merge commit '7196dac02d94105586305462be5c15a812c6f7de' into felipec
These changes can be mostly accepted and merged with limited resolution,
especially since hg-git testing is mostly disabled and discarded in
future commits.
2025-04-29 21:56:56 +02:00
Mark Nauwelaerts
e1d25cf97c Merge commit 'b4c3277f72f995cc0babcdc5bc6f6d0e2254acc3' into felipec
These changes can be merged with limited conflict resolution.
2025-04-29 21:18:04 +02:00
Mark Nauwelaerts
0fe1e359ec Merge commit '7394fc890e76ec3919fa30048338a9cbb59ce899' into felipec
This commit can be discarded as it is not relevant; revwalk() is used
in stead of gitrange().  The latter is based on recorded tips, which
are also no longer in use, as that approach is not quite robust.
It is also inefficient when fetching large number of new bookmarks
(for which there can be no pre-tracked tip).
2025-04-29 20:53:25 +02:00
Mark Nauwelaerts
498c615051 Merge commit '22229dd738ae3d0752b293cca1cf948c1d154cfa' into felipec
These changes can be merged with limited to no conflict resolution.
2025-04-29 20:48:13 +02:00
Mark Nauwelaerts
6b6aa9deaa Merge tag 'v0.6' into felipec
These changes involve a port to python3.  These can mostly be discarded,
as such port has already been done in an alternative way, which supports
both v2 and v3.
2025-04-28 18:53:34 +02:00
Mark Nauwelaerts
2685f56c7c Merge tag 'v0.5' into felipec
These changes can be merged with limited to no conflict resolution.
2025-04-28 18:37:33 +02:00
Mark Nauwelaerts
3314ce3dda Makefile: use lighter asciidoctor iso asciidoc 2025-04-28 17:24:22 +02:00
Mark Nauwelaerts
e4d87d5e2c Use raw literals for some regexps
Fixes mnauw/git-remote-hg#57
2025-02-08 21:19:29 +01:00
Mark Nauwelaerts
b029ac0500 Improve hg-git compatibility mode
... by adjusting to some hg-git changes

See mnauw/git-remote-hg#55
2023-05-07 13:21:45 +02:00
Felipe Contreras
7713b7ecef Remove push_unsafe()
It's not needed anymore.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-05-05 12:29:28 -06:00
Felipe Contreras
9c61c09ebf Remove support for lock-based unbundling
This was deprecated in 0.9.1 and support for those servers dropped in
4.4.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-05-05 12:29:23 -06:00
Felipe Contreras
463f397ba4 Remove last-note
We can take advantage of `ref^0` and let `git fast-import` figure out
the most recent commit.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-05-04 15:07:19 -06:00
Felipe Contreras
e774ad2d96 Fix initial marks version
[no ci]

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-05-04 09:40:10 -06:00
Felipe Contreras
086ca23507 Trivial cleanups
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-05-04 07:45:58 -06:00
Felipe Contreras
7c373be665 test: test against hg 6.4
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-05-04 07:20:51 -06:00
Felipe Contreras
3bfec5fc6f github: give a name to the action
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-22 18:17:20 -06:00
Felipe Contreras
7908c70efb Trivial simplifications
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-20 02:09:17 -06:00
Felipe Contreras
7cff2c6adb Simplify export_file args
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-20 02:07:45 -06:00
Felipe Contreras
9c5b8835f4 Get rid of export_files
It's not necessary.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-20 02:02:11 -06:00
Felipe Contreras
537e5a4735 Reorganize export_files
No functional changes.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-20 01:58:42 -06:00
Felipe Contreras
8025945a62 Simpler get_filechanges algorithm
The status method achieves the same thing as the current code.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-20 01:54:10 -06:00
Felipe Contreras
33dccdfab0 Simplify get_filechanges
No functional changes.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-20 01:47:48 -06:00
Felipe Contreras
4ad9c8d70c Reorganize get_filechanges
So it's more extensible.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-20 01:44:31 -06:00
Felipe Contreras
740c681c1d Trivial style change
More idiomatic.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-20 01:39:33 -06:00
Felipe Contreras
995179444c Trivial simplification
When there's no parents the files are the same as the manifest.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-20 01:37:49 -06:00
Felipe Contreras
e6c479c136 Cleanup timezone stuff
No functional changes.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-14 04:10:54 -06:00
Felipe Contreras
b8b9a2f571 Use relative option to hg.share
When available.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-07 22:48:07 -06:00
Felipe Contreras
4c50223dba remote-hg: remove shared repo upgrade
We are not in 2013 anymore.

This reverts commit 8f9a87c (remote-hg: add shared repo upgrade,
2013-08-09).

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-07 22:47:53 -06:00
Felipe Contreras
35d32d5a75 Remove ancient marks upgrade path
It's safe to safe everyone already moved on since 2013.

This reverts d379f37 (remote-hg: upgrade version 1 marks, 2013-05-24).

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-07 21:49:05 -06:00
Felipe Contreras
7f6a843f0d github: add windows job
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-07 18:46:30 -06:00
Felipe Contreras
63cf2780ba test: fixes for Windows
It's not clear if these tests can't work, or don't work at the moment,
but at least some seem to be the fault of hg, not us.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-07 18:45:17 -06:00
Felipe Contreras
f032d3617b Improve output writing
Let's avoid all python weirdness and just write directly.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-07 11:52:05 -06:00
Mark Nauwelaerts
60a1d7ae7a Fix for paths in Windows
Rewritten-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-07 11:52:05 -06:00
Felipe Contreras
10aec96d88 Simplify absolute path fix
This actually works on Windows.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-07 11:33:30 -06:00
Felipe Contreras
9b54c626bc Remove support for hg < 4.0
2016 is ancient anyway.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-06 15:40:44 -06:00
Felipe Contreras
d51f508916 check-versions: trivial results cleanup 2023-03-06 15:40:44 -06:00
Felipe Contreras
9916fead46 github: trivial update
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-06 15:40:44 -06:00
Felipe Contreras
09c4726083 check-versions: simplify for a single component
No need for all the extra complexity just for hg.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
2023-03-06 15:40:44 -06:00