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

Pegged Versions and get_file/cat

From: Christopher H. Laco <claco_at_chrislaco.com>
Date: 2005-11-08 00:09:03 CET

Hash: SHA1

What exactly are pegged versions and how would you use then when calling
get_file or cat to get a files contents?

I'm still having a problem understanding the best way to get the
contents of a file whose dirent revision isn't the revision under which
the file can be found (like in a tags or branches directory copy).

For example:

        /repos/project/trunk/foo.txt Revision 22
        /repos/project/tags/0.01 Revision 23
        /repos/project/tags/0.01/foo.txt Revision 22

What's the proper procedure for getting the contents of

get_file('/repos/project/tags/0.01/foo.txt', -1) will get me the latest
revision, but that may not be the right one.

get_file('/repos/project/tags/0.01/foo.txt', 22) will yield a 404 not
found error because the file is really located at

get_file('/repos/project/tags/0.01/foo.txt', 23) will get me the version
that I'm interested in. But, how would I know how to get use 23 instead
of 22?

So, without any prior knowledge of whether a revision of a file is the
original, or a copy, what's the proper procedure here?

Should I always call getprops on /repos/project/tags/0.01/foo.txt which
will give me the real path of
/repos/!svn/bc/23/project/tags/0.01/foo.txt, and then use THAT path in

- -=Chris
Version: GnuPG v1.4.1 (GNU/Linux)


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 8 00:11:14 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.