Name problem when importing two external git repositories

Asked by Simon Marchi

Hi,

I am trying to import two external git repositories in the same project, but I face some naming issues. I go in "Configure Code", and I create the first repository with the following information:

name: minicoredumper
team: minicoredumper
url: http://git.linuxfoundation.org/diamon/minicoredumper.git

Everything seems fine, the new repository is called lp:minicoredumper and an import is scheduled.

I then want to import the repository which contains the Debian package files. Here is the info I give:

name: minicoredumper-debian
team: minicoredumper
url: https://github.com/Linutronix/minicoredumper-debian.git

After that repo is created, the first repository is renamed to

  lp:~minicoredumper/minicoredumper/+git/minicoredumper

and the new one takes its place as lp:minicoredumper. I would expect my second one to be called lp:minicoredumper-debian and not affect the first one.

Any idea what's happening here?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Simon Marchi
Solved:
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

If you want to import another repository and not have it become the default repository for its target, then use https://code.launchpad.net/+code-imports/+new rather than https://code.launchpad.net/minicoredumper/+configure-code.

Revision history for this message
Colin Watson (cjwatson) said :
#2

Incidentally, the first repository wasn't renamed as such. lp:<project> is just an alias that points to whichever repository is recorded as the default repository for that project; so the first repository was always lp:~minicoredumper/minicoredumper/+git/minicoredumper even if it was referred to by the shorter alias.

Revision history for this message
Simon Marchi (simon-marchi) said :
#3

Ok, thanks, it's clearer now.

I ended up using new-import for both so now I have

  lp:~minicoredumper/minicoredumper/+git/minicoredumper
  lp:~minicoredumper/minicoredumper/+git/minicoredumper-debian

I deduced the URL for the new-import page from another project I manage (it's the page I was accustomed to). However, from the "code" page of my project [1], I can't find the link for that page anywhere. I only see "Configure Code", which I (wrongfully) assumed had replaced new-import.

[1] https://code.launchpad.net/minicoredumper

Revision history for this message
Colin Watson (cjwatson) said :
#4

Yeah, we probably need to make the linkage clearer somehow. See the linked bug.

Revision history for this message
Simon Marchi (simon-marchi) said :
#5

RIght, thanks for the answers!