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 1/5] t/config.t: test PublicInbox::Git sharing between inboxes
  2019-01-31  4:27  3% [PATCH 0/5] a few more solver fixups and improvements Eric Wong
@ 2019-01-31  4:27  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2019-01-31  4:27 UTC (permalink / raw)
  To: meta

We need to ensure we don't introduce unnecessary processes
and memory usage for mapping multiple inboxes to the same
code repos.
---
 t/config.t | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/t/config.t b/t/config.t
index 7531fd7..ad738bd 100644
--- a/t/config.t
+++ b/t/config.t
@@ -169,4 +169,23 @@ for my $s (@valid) {
 	is_deeply(\@result, \@expect);
 }
 
+{
+	my $pfx1 = "publicinbox.test1";
+	my $pfx2 = "publicinbox.test2";
+	my $h = {
+		"$pfx1.address" => 'test@example.com',
+		"$pfx1.mainrepo" => '/path/to/non/existent',
+		"$pfx2.address" => 'foo@example.com',
+		"$pfx2.mainrepo" => '/path/to/foo',
+		"$pfx1.coderepo" => 'project',
+		"$pfx2.coderepo" => 'project',
+		"coderepo.project.dir" => '/path/to/project.git',
+	};
+	my $cfg = PublicInbox::Config->new($h);
+	my $t1 = $cfg->lookup_name('test1');
+	my $t2 = $cfg->lookup_name('test2');
+	is($t1->{-repo_objs}->[0], $t2->{-repo_objs}->[0],
+		'inboxes share ::Git object');
+}
+
 done_testing();
-- 
EW


^ permalink raw reply related	[relevance 7%]

* [PATCH 0/5] a few more solver fixups and improvements
@ 2019-01-31  4:27  3% Eric Wong
  2019-01-31  4:27  7% ` [PATCH 1/5] t/config.t: test PublicInbox::Git sharing between inboxes Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2019-01-31  4:27 UTC (permalink / raw)
  To: meta

All going into master and seems to run OK on the main
public-inbox.org server without problems.

Eric Wong (5):
  t/config.t: test PublicInbox::Git sharing between inboxes
  inbox: perform cleanup of Git objects for coderepos
  solvergit: allow searching on longer-than-needed OIDs
  solvergit: allow shorter-than-necessary OIDs from user
  viewvcs: support streaming large blobs

 lib/PublicInbox/Git.pm       | 18 ++++++++++++----
 lib/PublicInbox/Inbox.pm     | 17 +++++++++++++--
 lib/PublicInbox/SolverGit.pm | 41 +++++++++++++++++++++++++++++++++---
 lib/PublicInbox/ViewVCS.pm   | 37 ++++++++++++++++++++++++++++----
 t/config.t                   | 19 +++++++++++++++++
 t/git.t                      |  4 ++++
 t/solver_git.t               |  9 ++++++++
 7 files changed, 132 insertions(+), 13 deletions(-)

-- 
EW


^ permalink raw reply	[relevance 3%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2019-01-31  4:27  3% [PATCH 0/5] a few more solver fixups and improvements Eric Wong
2019-01-31  4:27  7% ` [PATCH 1/5] t/config.t: test PublicInbox::Git sharing between inboxes 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).