PHP Objects, Patterns and Practice (3rd edition)

(Barry) #1

CHAPTER 17 ■ VERSION CONTROL WITH SUBVERSION


When you run the import subcommand, you will be presented with an editor window and
instructed to provide an import message. In Figure 17–1, you can see vi, my default editor, demanding
just such input.


Figure 17–1. Providing an import message


When you attempt to import, you may get an error like this:

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 are set, and no 'editor-
cmd' run-time configuration option was found


That means that no editor is configured to work with Subversion. Depending on your preferred
editor, something like


$ export SVN_EDITOR=/bin/vi


will quickly solve this problem. You can also pass a message argument to the import command (and
to any command that requires a message) with the -m flag.
The import subcommand should generate output that looks something like this:


Adding megaquiz/quizobjects
Adding megaquiz/quizobjects/User.php
Adding megaquiz/trunk
Adding megaquiz/trunk/megaquiz.orig
Adding megaquiz/trunk/megaquiz.orig/trunk
Adding megaquiz/trunk/megaquiz.orig/trunk/pkg

Free download pdf