diff options
author | Junio C Hamano <junkio@cox.net> | 2007-04-17 17:50:21 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-17 17:50:21 -0700 |
commit | 86da9dec0af55d8212b37337911cd93214b8f00f (patch) | |
tree | fd541a6717d699dc31f4af2d81f3ae25af665fdf | |
parent | c182ec90d824168cfb70494bb920c0a2fb590d98 (diff) | |
parent | ab6029415b7e8acbc1beff7363c74bb94c3f0d9d (diff) | |
download | git-86da9dec0af55d8212b37337911cd93214b8f00f.tar.gz |
Merge branch 'maint'
* maint:
Start preparing for 1.5.1.2
git-svn: quiet some warnings when run only with --version/--help
git-svn: respect lower bound of -r/--revision when following parent
Conflicts:
RelNotes
-rw-r--r-- | Documentation/RelNotes-1.5.1.2.txt | 37 | ||||
-rwxr-xr-x | git-svn.perl | 9 |
2 files changed, 43 insertions, 3 deletions
diff --git a/Documentation/RelNotes-1.5.1.2.txt b/Documentation/RelNotes-1.5.1.2.txt new file mode 100644 index 0000000000..f58268f6be --- /dev/null +++ b/Documentation/RelNotes-1.5.1.2.txt @@ -0,0 +1,37 @@ +GIT v1.5.1.2 Release Notes (draft) +========================== + +Fixes since v1.5.1.1 +-------------------- + +* Bugfixes + + - "git diff a/ b/" incorrectly fell in "diff between two + filesystem objects" codepath, when the user most likely + wanted to limit the extent of output to two tracked + directories. + + - git-quiltimport had the same bug as we fixed for + git-applymbox in v1.5.1.1 -- it gave an alarming "did not + have any patch" message (but did not actually fail and was + harmless). + + - various git-svn fixes. + + - Sample update hook incorrectly always refused requests to + delete branches through push. + + - git-blame on a very long working tree path had buffer + overrun problem. + +* Documentation updates + + - Various documentation updates from J. Bruce Fields, Frank + Lichtenheld, Alex Riesen and others. Andrew Ruder started a + war on undocumented options. + +--- +exec >/var/tmp/1 +O=v1.5.1.1-31-g0220f1e +echo O=`git describe refs/heads/maint` +git shortlog --no-merges $O..refs/heads/maint diff --git a/git-svn.perl b/git-svn.perl index ac44f60b81..4d3c453bf2 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -168,14 +168,14 @@ for (my $i = 0; $i < @ARGV; $i++) { my %opts = %{$cmd{$cmd}->[2]} if (defined $cmd); read_repo_config(\%opts); -Getopt::Long::Configure('pass_through') if $cmd eq 'log'; +Getopt::Long::Configure('pass_through') if ($cmd && $cmd eq 'log'); my $rv = GetOptions(%opts, 'help|H|h' => \$_help, 'version|V' => \$_version, 'minimize-connections' => \$Git::SVN::Migration::_minimize, 'id|i=s' => \$Git::SVN::default_ref_id, 'svn-remote|remote|R=s' => sub { $Git::SVN::no_reuse_existing = 1; $Git::SVN::default_repo_id = $_[1] }); -exit 1 if (!$rv && $cmd ne 'log'); +exit 1 if (!$rv && $cmd && $cmd ne 'log'); usage(0) if $_help; version() if $_version; @@ -1682,7 +1682,10 @@ sub find_parent_branch { } my ($r0, $parent) = $gs->find_rev_before($r, 1); if (!defined $r0 || !defined $parent) { - $gs->fetch(0, $r); + my ($base, $head) = parse_revision_argument(0, $r); + if ($base <= $r) { + $gs->fetch($base, $r); + } ($r0, $parent) = $gs->last_rev_commit; } if (defined $r0 && defined $parent) { |