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

Re: UI needs some data questions

From: Karl Fogel <kfogel_at_galois.collab.net>
Date: 2000-12-21 15:34:20 CET

Bill Tutt <billtut@microsoft.com> writes:
> While thinking about this, I came up with some questions that the UI needs
> to ask either the libsvn_client, or libsvn_wc bits.
> What is the Working Copy Rev# of file A?
> What is the Last Modified Date of the Working Copy Rev# we have for file A?

This information is stored, yup. And there are (or will be)
interfaces to retrieve it -- you don't have to parse SVN/ metadata

> Answering these two questions lets us determine "Has this been touched",
> which in turn lets us do something pretty in the file list part of the UI.

Also recorded (via timestamp, and possibly later checksum).

> One more additional question:
> Does this directory have valid SVN meta-data?

Yup. The presence of an SVN/ subdir is not the only qualification --
actually, the spec is that once SVN/README is written, then we have a
valid working copy dir. So when creating new wc dirs, we make sure
that SVN/README is the last thing created in SVN/. :-)

Of course, again, you don't have to know this, you just have to use
the right function to ask the question.

> This allows us to differentiate between folders in the file system that are
> Working Copy directories, and those that are normal file system directories
> in the UI. Which is fairly important given my first statement.


Received on Sat Oct 21 14:36:17 2006

This is an archived mail posted to the Subversion Dev mailing list.