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

Re: [Subclipse-users] Avoid double commit when sharing project

From: Mark Phippard <markphip_at_gmail.com>
Date: Mon, 16 Mar 2009 16:11:30 -0400

On Mon, Mar 16, 2009 at 4:03 PM, <webpost_at_tigris.org> wrote:
> I am in the process of migrating my undergraduate students from using CVS to using SVN for version control (hopefully using Subclipse). I'm seeking to set up the simplest possible operation, to let them just start using version control without much introduction, and without prompting questions on things that I don't want to get into at this early stage.
>
> The process of initially sharing the project seems to require two commits and I'd like to avoid that if possible. This is possibly due to an alternative sequence of commands to the "import, delete original project, checkout working copy in its place" sequence. From a previous posting by Mark Phippard, it seems that Subclipse does the equivalent of:
>
> svn mkdir -m "Initial import" url://server/repos/project/trunk
> svn co url://server/repos/project/trunk LocalFolder
> svn add -R .
> svn ci -m "Initial import"
>
> This works fine but:
> (i) There are two commits in the history
> (ii) All the project files are initially at Revision 2 (for a blank repository).
>
> Perhaps I'm missing something? If I'm not, I can anticipate questions as to why and I prefer not to have to say "just ignore it for now".

This isn't changeable. Use it as a teaching moment to teach them that
revision numbers in SVN are not relevant as data points. Each
transaction up the repository revision. Do not try to assign meaning
to the number.

> Note that the version of Subclipse I'm using doesn't allow me to add files while sharing the project. (The wizard stage for entering the commit comment has nothing else other than a box for the comment.) From an article on IBM developerWorks, it seems that an older version did allow you to add files at that stage (see attached screenshot from that article). Is this relevant?

We have gone back to using the Synch view. This makes it easier to do
things like selectively add items to svn:ignore before the first
commit. You ulimately still get the commit dialog, you just have to
bring it up yourself.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=1335160
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2009-03-16 21:11:42 CET

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

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