git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/5] git-svn: SVN 1.1.x library compatibility

From
Junio C Hamano <junkio@cox.net>
Date
Jun 28, 2006, 09:02 UTC
Message-ID
<7virml4pqg.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<11514623563534-git-send-email-normalperson@yhbt.net>
Eric Wong <normalperson@yhbt.net> writes:
Show 9 quoted lines
> Tested on a plain Ubuntu Hoary installation
> using subversion 1.1.1-2ubuntu3
>
> 1.1.x issues I had to deal with:
>
> * Avoid the noisy command-line client compatibility check if we
>   use the libraries.
>
> * get_log() arguments differ.

Maybe you would want to have a single wrapper sub {} for this, instead of repeating it all over, perhaps like this:

	sub log_get {
        	my ($SVN_LOG, @args) = @_;
        	if ($SVN::CORE::VERSION ge '1.2.0') {
                	splice(@args, 3, 0, 0);
                }
                $SVN_LOG->get_log(@args);
	}
> -if test -n "$GIT_SVN_LC_ALL" && echo $GIT_SVN_LC_ALL | grep -q '\.UTF-8$'
> +if test -n "$GIT_SVN_LC_ALL" && echo $GIT_SVN_LC_ALL |grep '\.UTF-8$' >/dev/null
>  then

Hmph. I tend to do something like this instead of pipeing echo to grep:

	case "$LC_ALL" in
        *.UTF-8)
        	# it is utf-8
                ;;
        *)
        	# otherwise
                ;;
	esac
Previous: Eric WongNext: Eric Wong
Message 3 of 8 in “git-svn: more cool features”
  1. 0/5 git-svn: more cool featuresEric Wong, Jun 28, 2006
  2. 1/5 git-svn: SVN 1.1.x library compatibilityEric Wong, Jun 28, 2006
  3. Junio C HamanoJun 28, 2006
  4. git-svn: SVN 1.1.x library compatibilityEric Wong, Jun 28, 2006
  5. 2/5 git-svn: several graft-branches improvementsEric Wong, Jun 28, 2006
  6. 3/5 git-svn: add the commit-diff commandEric Wong, Jun 28, 2006
  7. 4/5 git-svn: add --follow-parent and --no-metadata options to fetchEric Wong, Jun 28, 2006
  8. 5/5 git-svn: be verbose by default on fetch/commit, add -q/--quiet optionEric Wong, Jun 28, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.