[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: problem with Quick Start: starting over

From: Ryan Schmidt <subversion-2006c_at_ryandesign.com>
Date: 2006-08-02 23:48:31 CEST

On Aug 2, 2006, at 23:32, Roland Silver wrote:

>>> I then edited one of the files, foo.c, with the editor ~/Library/
>>> Application Support/TextWrangler,
>>> but when I tried "svn commit" I got:
>>>
>>> roland-silvers-powerbook-g4-17:~/myproject rollos$ svn commit
>>> svn: Commit failed (details follow):
>>> svn: Could not use external editor to fetch log message; consider
>>> setting the $SVN_EDITOR environment variable or using the --
>>> message (-m) or --file (-F) options
>>> svn: None of the environment variables SVN_EDITOR, VISUAL or
>>> EDITOR is set, and no 'editor-cmd' run-time configuration option
>>> was found
>>>
>>> I'm confused! I need to edit source files with several editors:
>>> e.g. with TextWrangler and with the built-in editor of Apple's
>>> Xcode. Has this somehow screwed things up?
>>> It's been quite a while, and I forget how to set environment
>>> variables (I'm using the bash shell).
>>
>> Here's how I set up Subversion to use TextWrangler as commit
>> message editor:
>>
>> http://svn.haxx.se/users/archive-2006-07/0848.shtml
>>
>> I don't use Xcode very often so I don't know about using it for
>> writing commit messages, or about its Subversion integration.
>
> I followed your directions, and now I have two files:
> ~/.bash_profile:
> export EDITOR=editor.sh
>
> ~/scripts/editor.sh:
> #!/bin/sh
> edit +1 --wait --resume "$@"
>
> The directory ~/myproject contains:
> Makefile bar.c foo.c
>
> and (according to TextWrangler or "less foo.c") foo.c contains:
> /* foo.c */
> //This is file foo.c as of Wed 2006Aug02(14:10)
>
> With the current directory:
> roland-silvers-powerbook-g4-17:~/myproject rollos$ pwd
> /Users/rollos/myproject
>
> when I perform "svn commit" as follows, what I get follows:
>
> roland-silvers-powerbook-g4-17:~/myproject rollos$ svn commit
> sh: line 1: editor.sh: command not found

Read the rest of the thread I posted above—I already answered that
question. :-)

http://svn.haxx.se/users/archive-2006-07/0984.shtml

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Aug 2 23:50:10 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.