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

Obtaining revid of a given path in a repository

From: Lele Gaifax <lele_at_nautilus.homeip.net>
Date: 2003-12-23 00:09:09 CET

Hi all,

I want to implement a script that does the otherwise error-prone job
of keeping various parts of my repos in sync. What I'd like to achieve
is some sort of configurable way of doing copies and merges between
different paths. To do so, I plan to store a very simple scheme, using
either svn properties or (more probably) a normal file, under revision
control that is, that stores from which revision a particular
directory was last copied/merged.

I structured my repos as

/3rd
  /library1
    /cvs-branch-a
    /cvs-branch-b
  /library2
    /cvs-branch-c
    /cvs-HEAD
/our
  /project1
    /libs
      /library1
      /library2
    /srcs
      ...

where, in other words, I track each external packages used by any
project in the repos. When project1 started, I did some

  $ svn copy .../3rd/libX/some-branch .../our/project1/libs/libX

My current tool is able to perform this initial task, given said
configuration file. Some time later, I wanna be able to perform the
needed

  $ svn merge -r X:Y .../3rd/libX wc/

As said, to go there, I need to store from which revision X I last
copied/merged that particular directory, but I even failed to see the
clear path to get this information from the repository.

I tried both svn and svnlook (although I'd prefer the former, since it
would be nice to be able to run the script not necessarily on the
server (read: this is not a strong need:)), and the closest thing I
found is doing some parse of an "svn log -v" on the
just-created-by-copy path, that says something like

Changed paths:
   A /dir2 (from /dir:1)

But this is not enough (nor good...), since it would give an answer in
the initial step only, not after a merge, I mean.

So, how can I extract the last-changed-revision of an arbitrary path
in the repos?

Thanx a lot for any hints or document URLs,
and Happy Christmas to all of you!

ciao, lele.

-- 
nickname: Lele Gaifax	| Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas	| comincerò ad aver paura di chi mi copia.
email: lele@seldati.it	|		-- Fortunato Depero, 1929.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 23 00:08:44 2003

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.