File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Understanding Subversion commits and revisions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Understanding Subversion commits and revisions" Watch "Understanding Subversion commits and revisions" New topic
Author

Understanding Subversion commits and revisions

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hey,
I'm trying to dive more into Subversion.
http://svnbook.red-bean.com/en/1.5/svn.branchmerge.using.html
At this point, you should understand how each commit creates an entirely new filesystem tree (called a “revision”) in the repository.

Does this mean if a some one changes index.jsp page (in a Java web application for example), SVN will copy the entire project folder and increase the revision number?
Is this operation happens for every change?
I don't know but I got the feeling it is expensive approach.
Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It'd be really easy to see the increase in file space usage after making a change, no?

Svn stores diffs.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

What do you mean by "diffs"?
The modified file (index.jsp for example)?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

http://en.wikipedia.org/wiki/Diff
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

The text you quoted is in regard to branching and merging. Changing a single JSP file does not involve either a branch or a merge, thus there is no new directory tree. When checking in a text file the only thing that will be added to the repository is the difference between the current version and the previous version of the file. And the revision number does change for the whole repository.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Understanding Subversion commits and revisions