← Back to team overview

acmeattic-devel team mailing list archive

Re: Modifications to versioning system proposal

 

On Wednesday 07 July 2010 09:51 AM, Karthik Swaminathan Nagaraj wrote:
I think we misunderstood each other here. After a file is modified, we need an unmodified version to perform the diff against the current version. I mentioned that SVN keeps a copy of the unmodified version as .svn/text-base/filename.svn-base. So the diff becomes
*diff .svn/text-base/filename.svn-base filename*

Svn stores this unmodified version in the same folder as the original. However, it is unclear to me when svn makes this copy. It does not copy all the files (mod and unmod) as that's a waste of space. So, how is svn notified of a file write? Is it filesystem hooks which as called when a file is edited?


It is not true that it does not copy all files. It *does* keep a copy of all files in the folder that contains that file. In fact if a file /a/b/c is in being versioned under svn, then its copy can be found in /a/b/.svn/c.svn-base. So no fs hooks involved.

--
Aditya.

References