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

Re: Support for partial checkins?

From: Rick Mann <rmann_at_latencyzero.com>
Date: 2005-06-08 03:05:46 CEST

On Jun 7, 2005, at 17:52, Scott Palmer wrote:

> How do you propose doing this without a GUI? I can think of --
> interactive which would ask a yes/no question for each file to
> commit. Would that do?
>

Well, right now, if I type "svn commit", vi gets invoked and displays
something like this (the =='s bars represent the terminal window):

===================================================================
--This line, and those below, will be ignored--

M fo/web/WEB-INF/config/struts-config.xml
M fo/web/WEB-INF/config/tiles-definitions.xml
~
~
~
===================================================================

Instead of saying "--This line, and those below, will be ignored--",
it could say "Files:". Then, if add a comment, and cursor down to one
of the lines, and delete it so that I have something like this:

===================================================================
Demo of partical checkin.
--This line, and those below, will be ignored--

M fo/web/WEB-INF/config/struts-config.xml
~
~
~
~
===================================================================

and then <esc>-:-w-q-<ret>, I'm done. vi closes, and svn commit
outputs something like:

===================================================================
aero:~/Spyglass/svn/code/trunk/fo rmann$ svn commit
[vi editor session happened in here]
Sending fo/web/WEB-INF/config/struts-config.xml
Transmitting file data ..
Committed revision 6.
aero:~/Spyglass/svn/code/trunk/fo rmann$
===================================================================

Note that it only sent struts-config.xml, not both files originally
shown in the commit edit.

On the other hand, had I supplied the comment on the command line, it
would look something like this:

===================================================================
aero:~/Spyglass/svn/code/trunk/fo rmann$ svn commit -m "CLI checkin
demo"
Sending fo/web/WEB-INF/config/struts-config.xml
Sending fo/web/WEB-INF/config/tiles-definitions.xml
Transmitting file data ..
Committed revision 6.
aero:~/Spyglass/svn/code/trunk/fo rmann$
===================================================================

-- 
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 8 03:07:39 2005

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