Implemented a lister to list the repos for a given CGit instance.
Closes T1659
Differential D1610
swh.lister.cgit nahimilega on Jun 19 2019, 1:18 PM. Authored by
Details
Diff Detail
Event TimelineThere are a very large number of changes, so older changes are hidden. Show Older Changes Comment Actions
Well, yeah but at least, we could have a heads start beginning with those. Thus Anyway.
Ok, so for those, the idea of having patterns to fill in seems simple. We could have the following pattern to initialize on an instance basic <url>/<main-pattern><sub-pattern> With this, we could simplify the other instances.
So that'd give (X means None or empty): |--------------------------------+--------------+--------------| | url | main-pattern | sub-pattern | |--------------------------------+--------------+--------------| | https://git.kernel.org | X | X | | http://git.savannah.gnu.org | cgit/ | X | | https://cgit.kde.org/ | name-of-repo | X | | https://cgit.freedesktop.org/ | s/ | name-of-repo | | https://gitweb.torproject.org/ | name-of-repo | X | |--------------------------------+--------------+--------------| Can you please give this a spin? Comment Actions Build is green Comment Actions
Comment Actions Build is green
Comment Actions
Here i have broken the origin url into two parts <origin_url_prefix> is same for all the repos in the instance Reason to choose this over <url>/<main-pattern><sub-pattern> Some instance like https://cgit.kde.org/ have repo in the format https://anongit.kde.org/<repo_name> Moreover, this pattern will only require one more parameter (ie origin_url_prefix) and also keep the things simple
Comment Actions
Comment Actions Build is green
Comment Actions
Comment Actions Build is green Comment Actions Also, note that @anlambert did some tests on the cgit instance he found [1] with the lister. I think it's because, you load in memory all the repositories.
Comment Actions Heads up, i was checking the code to make sure my hypothesis was correct.
In the mean time, @anlambert confirmed it by modifying the simple lister would do the trick [1]
Comment Actions I confirm @ardumont analysis regarding the issue with the listing of http://hdiff.luite.com/cgit/, the db transaction was too large. Changing the n parameter here to the value of 1000 is sufficient to fix the issue. @nahimilega , I will commit the fix. You will just have to rebase your diff before landing.
Comment Actions
I made a commit in this diff itself(i saw your comment now), shall I remove it
Comment Actions Build is green Comment Actions Build is green Comment Actions sorry folks, the volume is just too high for me to follow here. i'll assume you can ping me if you need help with testing or a final review or something. :) thanks for the hard work!
Comment Actions
No worries there. Comment Actions Build is green |