subversion introspection

K

kj

I have a script that uses several home-grown modules.

These modules live in the directory "$FindBin::RealBin/lib" (here
$FindBin::RealBin stands for the parent directory of the script).

The script and all the modules are under revision control, via
Subversion.

OK, now I'd like a good way to cause the script to fail if it
detects that it (i.e. the copy of the software that is executing)
is not the most recently committed version.

Before I roll my own, I thought I'd ask around if there's already
a good way to do this.

TIA!

Kynn
 
J

John Bokma

kj said:
I have a script that uses several home-grown modules.

These modules live in the directory "$FindBin::RealBin/lib" (here
$FindBin::RealBin stands for the parent directory of the script).

The script and all the modules are under revision control, via
Subversion.

OK, now I'd like a good way to cause the script to fail if it
detects that it (i.e. the copy of the software that is executing)
is not the most recently committed version.

You want your script to "see" if all modules are the latest version(s)?

Maybe using the keywords property and put the version in a scalar, and
check this version in your script for all modules?

See:
http://johnbokma.com/mexit/2008/09/30/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top