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

Re: [DEFECT] cvs2svn.py does not honor --no-prune

From: Ling Li <ling_at_caltech.edu>
Date: 2004-02-15 02:56:38 CET

kfogel@collab.net wrote:
> Ling Li <ling@caltech.edu> writes:
>
>>command I used:
>>cvs2svn --create --no-prune -s repos --trunk-only cvs_repos
>>
>>There were only 3 revisions, but no empty directories were saved in
>>the resulted svn repos.
>
> If you asked it not to prune, and now there are no empty directories,
> it sounds like it did exactly what you wanted :-).

Hi Karl,

I am confused by your comment. cvs2svn help gives

   --no-prune don't prune empty directories

So when --no-prune is used, the empty directories in CVS repository
should be included in the SVN repository. Am I right? But what cvs2svn
did was not.

> But, if you would post a concrete example of what you expected to see
> vs what you did see, then we could answer your question better.

My CVS repo looks like

   -- dirA
     |- README
     |- dirA1 (empty)
     |- dirA2 (empty)
   -- dirB
     |- File1
     |- File2

Very simple. Here's the output from
cvs2svn --create --no-prune -s repos --trunk-only cvs_repos

... several lines for passes 1, 2, 3, & 4 ...

----- pass 5 -----
loading cvs2svn-dump into repos
<<< Started new transaction, based on original revision 1
      * adding path : trunk ... done.
      * adding path : trunk/dirA ... done.
      * adding path : trunk/dirA/README ... done.

------- Committed revision 1 >>>

<<< Started new transaction, based on original revision 2
      * adding path : trunk/dirB ... done.
      * adding path : trunk/dirB/File1 ... done.

------- Committed revision 2 >>>

<<< Started new transaction, based on original revision 3
      * adding path : trunk/dirB/File2 ... done.

------- Committed revision 3 >>>

pass 1: 0 seconds
pass 2: 0 seconds
pass 3: 0 seconds
pass 4: 0 seconds
pass 5: 1 seconds
  total: 1 seconds

Empty directories dirA/dirA1 & dirA2 were not committed in SVN repo.

Thanks!
--Ling

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Feb 15 03:53:04 2004

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.