git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC/PATCH] t9159-*.sh: Don't use the svn '@<rev>' syntax

From
John Szakmeister <john@szakmeister.net>
Date
Sep 13, 2011, 09:15 UTC
Message-ID
<CAEBDL5W3pEz6Bcdt3B1PPvbF_HrvgXTLbaNUCeR=+M5bUgRJSw@mail.gmail.com>
In-Reply-To
<20110913075726.GA15066@dcvr.yhbt.net>
On Tue, Sep 13, 2011 at 3:57 AM, Eric Wong <normalperson@yhbt.net> wrote:
Show 9 quoted lines
> Ramsay Jones <ramsay@ramsay1.demon.co.uk> wrote:
>> Hmm, I was hoping that someone would say something like:
>>
>>    "This test does not depend on the difference between the peg revision
>> and the operative revision, because the history represented in the test
>> repo is so simple that there *is* no difference, so Acked By: ... "
>
> Unfortunately, I remain perpetually confused w.r.t peg revisions vs "-r"
> and how it's handled differently between different SVN versions.

I haven't followed this conversation, but I can explain what peg revisions are. It used to be the only way to talk about a version of a file or path was to use '-r REVNUM'. IIRC, what would happen is that the url you provided would refer to the now current name of the file, and Subversion would walk back in history to look up the specified version of the file. However, that becomes a problem when the file no longer exists, or has been renamed. It's compounded if there is a new file with the same name in HEAD, because it would look up the wrong history. So peg revisions were introduced to say "start looking here @PEGREV and search forward or backwards for the version in REVNUM." So the difference is that old clients always looked at HEAD to start the search, whereas new clients will use PEGREV if specified, and HEAD otherwise.

There is a pretty thorough discussion of it in the SVN book:
    <http://svnbook.red-bean.com/en/1.6/svn.advanced.pegrevs.html>
Hope that helps!
-John
Previous: Eric WongNext: Junio C Hamano
Message 7 of 10 in “t9159-*.sh: Don't use the svn '@<rev>' syntax”
  1. t9159-*.sh: Don't use the svn '@<rev>' syntaxRamsay Jones, Jul 16, 2011
  2. Junio C HamanoJul 19, 2011
  3. Michael J GruberJul 20, 2011
  4. Sam VilainJul 20, 2011
  5. Ramsay JonesSep 10, 2011
  6. Eric WongSep 13, 2011
  7. John SzakmeisterSep 13, 2011
  8. Junio C HamanoSep 13, 2011
  9. Michael J GruberJul 20, 2011
  10. Michael J GruberJul 20, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.