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

Re: Transaction and revision numbers

From: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Mon, 6 Sep 2010 19:52:20 +1000

On Mon, Sep 6, 2010 at 7:29 PM, Giulio Troccoli <
Giulio.Troccoli_at_uk.linedata.com> wrote:

> Is there a special format of a transaction number?
>
> I would like to write a method in perl that gets a number, either
> transaction or revision, and then adds the correct --revision or
> --transaction parameter (for the svnlook command). So if there is a special
> format for a transaction number I can use a regular expression to check it.
>

The difference between a transaction and revision number depends purely on
context. AFAIK, the only time a transaction number is available is within a
pre-commit hook - once the transaction has been committed, it's a revision
number.

What context would your script be run in?

Cheers,
Daniel B.
Received on 2010-09-06 11:53:34 CEST

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.