~dlax

Recent activity

Re: [PATCH man.sr.ht/root] Document Debian repository 11 days ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

Drew DeVault a écrit :
> Perhaps you could introduce a locking file? Or ideally the update could
> be done atomically, by e.g. building up the new repo's state in a
> separate directory and mv'ing it into place once it's consistent.

That seems doable using an "incoming" directory on the mirror to store
packages built by CI on each components (not touching the repository)
and then processing this directory to actually include the package in
the repository. (There are commands for that in the repository
management tool I'm using -- reprepro.) I'm not sure when/how to run the
"process-incoming" job, maybe using a scheduled job triggered by a cron
once a day?

(I'll work back on this in September.)

Re: [PATCH man.sr.ht/root] Document Debian repository 15 days ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

Drew DeVault wrote:
> Let's get these building automatically before we put them up here.

I think it wouldn't be too hard to have packages built automatically
from each component's source by adding a manifest file in each .builds
directory.

But them I'm stuck for the upload step because I don't know how to
"incrementally" update the repository safely, i.e. prevent the resulting
repository to become "corrupted" if several jobs attempts to write to it
at the same time (many "metadata" files about the repository overall
need to be kept consistent).

[PATCH man.sr.ht/root] Document Debian repository 18 days ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

---
 packages.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/packages.md b/packages.md
index f4917f7..cc7c3c0 100644
--- a/packages.md
+++ b/packages.md
@@ -31,3 +31,20 @@ Server = https://mirror.sr.ht/archlinux/sr.ht
 $ pacman-key --recv-keys C0AAFC1676BD998617C94C42DC59670F1EB0A189
 $ pacman-key --lsign-key C0AAFC1676BD998617C94C42DC59670F1EB0A189
 ```
+
+## Debian
[message trimmed]

Re: Debian packaging for sr.ht components 19 days ago

From Denis Laxalde to ~sircmpwn/sr.ht-discuss

Hi,

Update on the packaging work of sr.ht components for Debian.

All components, except builds.sr.ht, are now packaged for Debian.
Sources for the packaging live in the following git/hg repositories:

  https://git.sr.ht/~dlax/?search=.sr.ht-deb
  https://hg.sr.ht/~dlax/?search=.sr.ht-deb

There is an APT repository available at https://mirror.sr.ht/debian/; it
currently contains packages for the "unstable" distribution (and amd64
architecture) only. To enable the repository, add a sources.list entry
like:

Re: [PATCH hg.sr.ht] Replace the heads tab by 3 explicit tabs for branches, bookmarks, tags 19 days ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

I agree this is an improvement.

Tested on my local instance (along with the other patch in scm.sr.ht),
works fine.

Re: Debian - srht module isn't found even when installed a month ago

From Denis Laxalde to ~sircmpwn/sr.ht-discuss

Hi Adam,

I maintain a mirror for sr.ht Debian packages. It's not quite official
since I'm still working on it but many components work fine already. If
you want to try it out, add a sources.list file with:

  deb https://mirror.sr.ht/debian unstable main

and search for "srht-" packages. (The PGP key is available at
https://mirror.sr.ht/debian/key.asc)

Denis

Re: [PATCH 3 of 3 hg.sr.ht] Make "archive" work rev value containing "/" a month ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

git.sr.ht does not work very well apparently in these cases.

For instance with a tag like "a/b" the tar.gz archive will contain a "b"
directory above expected content.

I can work on a fix if this is confirmed.

[PATCH 3 of 3 hg.sr.ht] Make "archive" work rev value containing "/" a month ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

# HG changeset patch
# User Denis Laxalde <denis@laxalde.org>
# Date 1562789523 -7200
#      mer. juil. 10 22:12:03 2019 +0200
# Node ID d02b6272974b091fde1447acab8329faff9a3aa1
# Parent  70d2e27443aabfaa8f37e3240a0a91e60edce18a
# Available At https://hg.sr.ht/~dlax/hg.sr.ht
#              hg pull https://hg.sr.ht/~dlax/hg.sr.ht -r d02b6272974b
Make "archive" work rev value containing "/"

First, we add path: converter to rev URL variable in archive route it
gets matched with, e.g., tags with slashes in their name.

Then, we escape slashes in rev when build paths so that they do not

[PATCH 2 of 3 hg.sr.ht] Make "browse" work rev value containing "/" a month ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

# HG changeset patch
# User Denis Laxalde <denis@laxalde.org>
# Date 1562787781 -7200
#      mer. juil. 10 21:43:01 2019 +0200
# Node ID 70d2e27443aabfaa8f37e3240a0a91e60edce18a
# Parent  cd426d91873f197d6eab9cb0f14b8d9ea123f196
# Available At https://hg.sr.ht/~dlax/hg.sr.ht
#              hg pull https://hg.sr.ht/~dlax/hg.sr.ht -r 70d2e27443aa
Make "browse" work rev value containing "/"

When, e.g., a tag contains slashes, browsing from the heads link
is currently broken. We fix this by introducing a lookup_rev_path()
function that processes "rev" and "path" parts of the browse route
combined (with a "/") until we find the first existing Mercurial

[PATCH 1 of 3 hg.sr.ht] Issue one get_rev_view_data() call for all branches of browse() a month ago

From Denis Laxalde to ~sircmpwn/sr.ht-dev

# HG changeset patch
# User Denis Laxalde <denis@laxalde.org>
# Date 1562786268 -7200
#      mer. juil. 10 21:17:48 2019 +0200
# Node ID cd426d91873f197d6eab9cb0f14b8d9ea123f196
# Parent  48cf777761916b698f02c3c66d6ddd64036d92d6
# Available At https://hg.sr.ht/~dlax/hg.sr.ht
#              hg pull https://hg.sr.ht/~dlax/hg.sr.ht -r cd426d91873f
Issue one get_rev_view_data() call for all branches of browse()

diff --git a/hgsrht/blueprints/repo.py b/hgsrht/blueprints/repo.py
--- a/hgsrht/blueprints/repo.py
+++ b/hgsrht/blueprints/repo.py
@@ -240,14 +240,14 @@ def browse(owner, repo, rev, path):