Write out metadata about git repos on disk

Bug #1849742 reported by Haw Loeung
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
turnip
Triaged
Low
Unassigned

Bug Description

Hi,

Would be nice to write out metadata about git repos on disk. This would help us easily map the directories and git processes to which repos they're working on.

For example, '/srv/turnip/data/repos/41964' and '/srv/turnip/data/repos/30355'. While we can eventually try figure it out from commit messages via 'git log', it's still quite a bit of effort.

There's a 'description' file, might be worth adding there?

| Unnamed repository; edit this file 'description' to name the repository.

Haw Loeung (hloeung)
Changed in turnip:
importance: Undecided → Wishlist
Revision history for this message
Paul Collins (pjdc) wrote :

Here's a workaround (possibly not optimal, but explain seemed OK and it returned quickly:

launchpad_prod=# select person.name as owner, product.name as project, gitrepository.name as repo from gitrepository,person,product where gitrepository.id = 30355 and gitrepository.owner = person.id and gitrepository.project = product.id;
      owner | project | repo
-----------------+--------------------+--------------------
 ubuntu-security | ubuntu-cve-tracker | ubuntu-cve-tracker
(1 row)

launchpad_prod=# _

But it would certainly be more convenient if this information were closer to hand.

Revision history for this message
Kristian Glass (doismellburning) wrote :

Not clear this is the preferred solution to the problem - let's consider e.g. better query tooling / some kind of convenience tool to fetch the info live - but agree there's a gap there!

Changed in turnip:
importance: Wishlist → Low
status: New → Triaged
Revision history for this message
Colin Watson (cjwatson) wrote :

In particular, we don't want LP to have to ask turnip to change the description of a large number of repositories when a person or target name changes.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.