1. 13 8月, 2006 2 次提交
  2. 12 8月, 2006 5 次提交
    • E
      git-svn: split the path from the url correctly with limited perms · a69a165f
      Eric Wong 提交于
      This version of the splitter (that only affects SVN:: library
      users) works when one only has limited read-permissions to
      the repository they're fetching from.
      
      Updated from the original patch to workaround some SVN bug
      somewhere, which only seems to happen against file://
      repositories...  Here's the diff against the original patch I
      submitted:
      
      @@ -1159,8 +1159,8 @@ sub repo_path_split {
       	}
      
       	if ($_use_lib) {
      -		$SVN = libsvn_connect($full_url);
      -		my $url = $SVN->get_repos_root;
      +		my $tmp = libsvn_connect($full_url);
      +		my $url = $tmp->get_repos_root;
       		$full_url =~ s#^\Q$url\E/*##;
       		push @repo_path_split_cache, qr/^(\Q$url\E)/;
       		return ($url, $full_url);
      
      Somehow connecting to a repository with the full url makes the
      returned SVN::Ra object act strangely and break things, so now
      we just drop the SVN::Ra object that we made our initial
      connection with.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a69a165f
    • J
      git-sh-setup: do not use repo-config to test the git directory · c8769f76
      Junio C Hamano 提交于
      Since repo-config does not fail in non-git directory, it is not
      a good command to use to test the git-ness nor validate the
      repository revision of $GIT_DIR.
      
      Original patch by Robert Shearman but with minor fixes.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      c8769f76
    • E
      git-svn: bugfix: allow SVN:: lib users to track the root of the repository · 308906fa
      Eric Wong 提交于
      I'm not sure if anybody has hit this (besides me), but this
      fixes the problem where I ran into while attempting to import a
      small repo at the root level:  I ended up with all the commits, but
      with no file/tree changes at all throughout the entire history.
      
      Also, fix a warning if the commit message is not defined for revision 0.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      308906fa
    • E
      git-svn: correctly kill keyword expansion without munging EOLs · 17a10f37
      Eric Wong 提交于
      This bugfix applies to users of the svn command-line client only.
      
      We no longer muck with newlines when killing keyword expansion.
      This tended to generate unintended diffs in commits because svn
      revert -R would destroy the manual EOL changes we were doing. Of
      course, we didn't need the EOL munging in the first place, as
      svn seems to do it for us even in the text-base files.
      
      Now we set the mtime and atime the files changed by keyword
      expansion killing to avoid triggering a change on svn revert,
      which svn still seems to want to do.
      
      Thanks to Seth Falcon for reporting this bug.
      Signed-off-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      17a10f37
    • R
      drop length argument of has_extension · 5bb1cda5
      Rene Scharfe 提交于
      As Fredrik points out the current interface of has_extension() is
      potentially confusing.  Its parameters include both a nul-terminated
      string and a length-limited string.
      
      This patch drops the length argument, requiring two nul-terminated
      strings; all callsites are updated.  I checked that all of them indeed
      provide nul-terminated strings.  Filenames need to be nul-terminated
      anyway if they are to be passed to open() etc.  The performance penalty
      of the additional strlen() is negligible compared to the system calls
      which inevitably surround has_extension() calls.
      
      Additionally, change has_extension() to use size_t inside instead of
      int, as that is the exact type strlen() returns and memcmp() expects.
      Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      5bb1cda5
  3. 11 8月, 2006 10 次提交
  4. 10 8月, 2006 9 次提交
  5. 09 8月, 2006 7 次提交
  6. 08 8月, 2006 3 次提交
  7. 06 8月, 2006 3 次提交
  8. 05 8月, 2006 1 次提交