| Summary: | Importing projects using ProjectSetCapability fails for existing repo (multiple projects, single repo) | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Tim Webb <tim> |
| Component: | Core | Assignee: | Project Inbox <egit.core-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | daniel_megert, dariusz.luksza, hector, matthias.sohn, mn, p_petrov_eclipse, ray, robin, tomasz.zarna |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Tim Webb
Pushed two changes to implement this: * Refactor import code of GitProjectSetCapability http://egit.eclipse.org/r/4779 * Skip clone for import of project from existing repo http://egit.eclipse.org/r/4780 (In reply to comment #1) > Pushed two changes to implement this: -2 as it will not update existing local repository, i.e.: - clone remote repo A with one project and import it; - someone pushed new changes to remote repo A and now it has three projects; - someone updated PSF accordingly (it refers to three projects); - you use this PSF and it should import three projects; - BUT your local repository still has only one. Am I missing something? This situation is only possible if you never pulled since the you imported the original repository. But even then, I don't think we should touch the existing repositories. What are you suggesting, doing a pull? What about if there are merge conflicts? (In reply to comment #3) > But even then, I don't think we should touch the existing repositories. What > are you suggesting, doing a pull? No, this is what I would expect in this situation: - add a new remote - fetch from it - stash uncommitted changes if any - switch to branch, according to PSF - import (In reply to comment #4) > (In reply to comment #3) > > > But even then, I don't think we should touch the existing repositories. What > > are you suggesting, doing a pull? > > No, this is what I would expect in this situation: > - add a new remote > - fetch from it > - stash uncommitted changes if any > - switch to branch, according to PSF > - import Do others also think that this would be the right thing to do? merged http://egit.eclipse.org/r/#change,4779 as 6ed6b9104cbce86668d6819601694f8a29a16119 merged http://egit.eclipse.org/r/4780 as 03a111b4c460bb1443f50de3294da9424de0dbcd With 03a111b4c4, -1 as there is no way to get feedback about the case from comment #2. -1 as it makes PSF useless if you have a local clone for such project as it will SILENTLY do nothing as a result of 'Import from PSF' action. +0 as it solves the problem that has a workaround. So, it breaks my expectation about using PSF: it finishes w/o errors = I have all projects from this PSF in my workspace. Personally, I see no value in this change. (In reply to comment #8) > With 03a111b4c4, > -1 as there is no way to get feedback about the case from comment #2. > -1 as it makes PSF useless if you have a local clone for such project as it > will SILENTLY do nothing as a result of 'Import from PSF' action. > +0 as it solves the problem that has a workaround. > > So, it breaks my expectation about using PSF: it finishes w/o errors = I have > all projects from this PSF in my workspace. Personally, I see no value in this > change. IMHO this is good starting point for further improvements and discussions. We can now continue working on proper user experience and make another small step ahead. |