user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 2/5] lei_mirror: do not re-fetch inbox.config.example
  2023-03-13 12:00  7% [PATCH 0/5] clone improvements Eric Wong
@ 2023-03-13 12:00  6% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-03-13 12:00 UTC (permalink / raw)
  To: meta

It's a significant source of latency for incremental updates at
the moment, and not really needed since it's just an example.
---
 lib/PublicInbox/LeiMirror.pm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/PublicInbox/LeiMirror.pm b/lib/PublicInbox/LeiMirror.pm
index d878f1e4..967a6422 100644
--- a/lib/PublicInbox/LeiMirror.pm
+++ b/lib/PublicInbox/LeiMirror.pm
@@ -620,7 +620,8 @@ sub clone_v1 {
 						\&run_puh, $self, $fini));
 	}
 	if (!$self->{-is_epoch} && $lei->{opt}->{'inbox-config'} =~
-				/\A(?:always|v1)\z/s) {
+				/\A(?:always|v1)\z/s &&
+			!-f "$dst/inbox.config.example") {
 		_get_txt_start($self, '_/text/config/raw', $fini);
 	}
 
@@ -923,8 +924,10 @@ failed to extract epoch number from $src
 
 	$self->{dry_run} or File::Path::mkpath($dst);
 
-	$lei->{opt}->{'inbox-config'} =~ /\A(?:always|v2)\z/s and
+	if ($lei->{opt}->{'inbox-config'} =~ /\A(?:always|v2)\z/s &&
+			!-f "$dst/inbox.config.example") {
 		_get_txt_start($task, '_/text/config/raw', $fini);
+	}
 
 	defined($desc) ? ($task->{'txt.description'} = $desc) :
 		_get_txt_start($task, 'description', $fini);

^ permalink raw reply related	[relevance 6%]

* [PATCH 0/5] clone improvements
@ 2023-03-13 12:00  7% Eric Wong
  2023-03-13 12:00  6% ` [PATCH 2/5] lei_mirror: do not re-fetch inbox.config.example Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-03-13 12:00 UTC (permalink / raw)
  To: meta

The more I use it, the more problems I find :x

Eric Wong (5):
  lei_mirror: describe why the {ibx} field is used
  lei_mirror: do not re-fetch inbox.config.example
  lei_mirror: do not fetch to read-only directories
  lei_mirror: handle UTF-8 from manifest.js.gz properly
  doc: clone: document --remote-manifest= option

 Documentation/public-inbox-clone.pod | 11 +++++++++++
 lib/PublicInbox/LeiMirror.pm         | 24 +++++++++++++++++-------
 t/clone-coderepo.t                   |  8 ++++++--
 3 files changed, 34 insertions(+), 9 deletions(-)

^ permalink raw reply	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-03-13 12:00  7% [PATCH 0/5] clone improvements Eric Wong
2023-03-13 12:00  6% ` [PATCH 2/5] lei_mirror: do not re-fetch inbox.config.example Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).