aspose 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
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply 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: 3359

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: 3359

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: 5543

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Understanding Subversion commits and revisions
 
Similar Threads
How do you know the version of Java .class file?
maven scm plugin: svn revision
Add date and revision info to the javadoc when checked in
subversive
creating a project from Eclipse to sourceforge subversion