It's an interesting use-case you have... why are you interested in the
original author? Most people just want to know who the *last* person
to change a file was, and in what revision. In fact, even 'svn ls -v'
shows this information.
Reply Forward
On 3/31/07, Ewout <evtroost@vub.ac.be> wrote:
> >On 3/31/07, Ewout <evtroost@vub.ac.be> wrote:
> >> Hello all,
> >>
> >> Does anyone know if the svn API has a way to extract the revision
> >> on which a particular node was added to the repository?
> >
> >Are you asking about a *node*, or a *file*? A file's history is a
> >long series of nodes.
>
> I was talking about a file/directory, in svn lingo a node is something
> different, indeed.
>
> >
> >If you want to know when a file was first added to the repository, you
> >need to find some version of it (some node), and follow the links
> >backwards in time to previous versions of the node, until you find
> >the node that has no ancestor. Just as you describe.
>
> Thank you for confirming this, though my question was if there is a more
> efficient way. Given your answer, I suppose not. The reason I would need
> this, is because I want to display the orginal author of every file/
> directory in a directory listing. Preliminary tests showed that this
> approach was too slow. I guess I will look into indexing the log.
>
> Thanks,
> Ewout
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 31 20:46:26 2007