Felipe Contreras
408333afca
github: use newer hg versions
2025-03-08 08:48:47 -06:00
Felipe Contreras
c861db6add
check-versions: add newer versions
2025-03-08 08:32:03 -06:00
Felipe Contreras
d2a3a646af
test: unset user some config
2025-03-08 08:30:24 -06:00
Felipe Contreras
f00911668a
Avoid decoding some binary stuff
2025-03-08 02:01:54 -06:00
Felipe Contreras
474cacd81d
check-versions: fix for newer ruby versions
2025-03-07 23:53:09 -06:00
Felipe Contreras
615cc7fe04
github: disable windows tests
...
It's not working. Probably related to actions/runner-images#7253 .
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2024-03-07 01:07:07 -06:00
Dan Rose
79e75991ab
Use raw strings for regexes
...
Fixes #94 .
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2024-03-07 00:28:50 -06:00
Felipe Contreras
b274b8057e
Don't force public pushes
...
This is something that needs to explicitly happen.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-05-05 12:29:28 -06:00
Felipe Contreras
451e31022a
Restrict common discovery
...
This was added in hg 4.5.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-05-05 12:29:28 -06: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
9916fead46
github: trivial update
...
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:40:44 -06:00
Felipe Contreras
bb663c032f
github: use standard hg packages
...
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:40:44 -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
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
Felipe Contreras
b590aec106
check-versions: remove code for other tools
...
Only support hg.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:40:44 -06:00
Felipe Contreras
4496af4a5c
check-versions: remove hg hack
...
It was only needed for hg-git tests.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:40:44 -06:00
Felipe Contreras
890080673b
check-versions: remove hg-git stuff
...
It's not worth it to keep trying to run this.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:40:44 -06:00
Felipe Contreras
5e6ef0a1d5
test: properly check for mercurial
...
We want to fail if it's not present, not skip the tests.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:40:44 -06:00
Felipe Contreras
a1e2c4acc9
test: remove pointless prereq checks
...
The prereq check was necessary in upstream git, not here where it's a
noop.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:40:44 -06:00
Felipe Contreras
7196dac02d
Merge branch 'hg-git-revamp'
...
* hg-git-revamp:
test: enable hg-git tests
test: hg-git: trivial cleanup
test: hg-git: general cleanup
test: hg-git: fetch output from expected dir
test: add expected output
test: hg-git: add test_cmp_expected helper
test: hg-git: add helper functions
test: switch to bash
test: hg-git: add main helper
test: hg-git: simplify hg log filter
test: relax hg-git checks
test: hg-git: cleanup
2023-03-06 15:39:23 -06:00
Felipe Contreras
a8bb2a28a3
test: enable hg-git tests
...
They have been working for a long time but the standard packages needed
to be patched with check-versions to run them successfully.
Now that the expected output is stored we don't need to patch anything
and they can just be run.
This reverts commit b022367aef .
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:18:53 -06:00
Felipe Contreras
ffcb41cc52
test: hg-git: trivial cleanup
...
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:18:53 -06:00
Felipe Contreras
9949745533
test: hg-git: general cleanup
...
Now that we don't have to run hg-git the code is much simpler.
No functional changes.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:18:52 -06:00
Felipe Contreras
83620648ab
test: hg-git: fetch output from expected dir
...
So we don't actually have to run hg-git every time (it's broken most of
the time anyway).
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:09:02 -06:00
Felipe Contreras
30a2d61bdf
test: add expected output
...
Generated with: hg:6.3 hggit:1.0.1 dulwich:0.20.50
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com >
2023-03-06 15:09:02 -06:00