That depends entirely on your merge strategy. In this case, I'm only
really interested in fast-forwards, which can't create, well, anything. If
I did any development on this particular project, I'd be emailing patch
series, at least for now, so mapping back into SVN isn't a concern for me.
Possibly "pull" should be able to invoke rebase instead of merge, also
(or merge should be able to actually use rebase). Handwaving, it would be
good if a branch config could say that the history has to remain linear
for some policy reason.
That's what I've got right now.
The current version of git just ignores it, which means that a regular
"git fetch" fails, but actually somewhat less confusingly than if you
don't have the section at all. (See below)
git-fetch is confused worse by getting invoked without any remotes than by
getting a URL that doesn't work. I think it's trying to fetch from
"./origin/.git" effectively. At least if you've got a section with a URL
that doesn't have a git repository at it, it tells you it couldn't find a
git repository at the svn URL (or it tells you it doesn't understand
svn://...), at which point you know what's wrong.
For future versions, it would be just as easy to have a setting to tell it
what interfacing thing it needs in order to handle a particular remote.
But I could see it being helpful to be able to have a ton of different
remotes, some of which are through importers, where you don't much care
how you get the content. E.g., Linus could just do "git pull alsa", to
import from ALSA's repository, ignoring the fact that it's hg (and used
to be cvs). It would definitely be helpful for cases where changes only
come from the foriegn SCM (or go back as patches). So, at the very least,
you should be able to use:
[hg-remote "alsa"]
Also, subprojects in the "vast superproject" model would often have
import-only links to upstream repositories in other systems, as a backbone
for non-linear local development.
I've been poking at the git-fetch stuff some. Certainly doing better than
looking at git-svn, since I don't know perl...
-Daniel
*This .sig left intentionally blank*
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html