The Artima Developer Community
Sponsored Link

Python Buzz Forum
What is absolutely required in a .svn directory for 'svn update' to work

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phillip Pearson

Posts: 1083
Nickname: myelin
Registered: Aug, 2003

Phillip Pearson is a Python hacker from New Zealand
What is absolutely required in a .svn directory for 'svn update' to work Posted: Jun 14, 2006 3:52 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Phillip Pearson.
Original Post: What is absolutely required in a .svn directory for 'svn update' to work
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
Latest Python Buzz Posts
Latest Python Buzz Posts by Phillip Pearson
Latest Posts From Second p0st

Advertisement

.svn directories contain lots of files, but it seems that you only need a relatively small subset for everything to work. Here it is:

.svn/format -- required for svn to work at all. A two byte file, with contents "4\n". .svn/tmp -- required for 'svn update'. An empty directory. .svn/text-base -- required for most things to work. Contains a pristine copy of each file in the working dir, with ".svn-base" appended to the filename.

It seems that 'svn status' actually compares each file in the working dir against its equivalent in .svn/text-base to determine whether it has been modified (it doesn't use the checksums in .svn/entries). If you remove .svn/text-base, 'svn status' says everything in the working dir is modified, and 'svn update' appears to work but doesn't seem to do anything (although I haven't tested it much).

.svn/entries -- required for svn to work at all. An XML file containing details of each file in the directory. The minimum required fields seem to be:

- for the directory, <entry committed-rev="1" name="" url="http://server/path/to/this/directory/in/repository" kind="dir" revision="1"/>

- for each file, <entry committed-rev="1" name="filename" kind="file" />

It looks like dir-wcprops, prop-base, props and wcprops aren't required. 'svn update' recreates dir-wcprops if you delete it.

If a file in the directory has a different revision to the directory itself, its <entry> element gets a 'revision' attribute. Otherwise all files have the revision specified in the directory's <entry> element's 'revision' attribute.

Comment

Read: What is absolutely required in a .svn directory for 'svn update' to work

Topic: Pure PHP Subversion client Previous Topic   Next Topic Topic: Album of the week - Ravi Shankar - The Sounds of India

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use