author | Eric Wong <normalperson@yhbt.net> | |
Fri, 17 Feb 2006 02:13:32 +0000 (18:13 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 17 Feb 2006 09:01:24 +0000 (01:01 -0800) | ||
commit | defc649229eef2461ad1c2fea53985b8c10fd3db | |
tree | 1a2ac72dccf4b6e257596b482b2ed5a7b0cea584 | tree | snapshot |
parent | 1c6bbbf37be5c2b0fce45a57ecfeea2d9b7a3269 | commit | diff |
git-svn: ensure fetch always works chronologically.
We run svn log against a URL without a working copy for the first fetch,
so we end up a log that's sorted from highest to lowest. That's bad, we
always want lowest to highest. Just default to --revision 0:HEAD now if
-r isn't specified for the first fetch.
Also sort the revisions after we get them just in case somebody
accidentally reverses the argument to --revision for whatever reason.
Thanks again to Emmanuel Guerin for helping me find this.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
We run svn log against a URL without a working copy for the first fetch,
so we end up a log that's sorted from highest to lowest. That's bad, we
always want lowest to highest. Just default to --revision 0:HEAD now if
-r isn't specified for the first fetch.
Also sort the revisions after we get them just in case somebody
accidentally reverses the argument to --revision for whatever reason.
Thanks again to Emmanuel Guerin for helping me find this.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/git-svn/git-svn | diff | blob | history |