> > If you look at the svn_fs.h API, they are both referred to
> as revision roots. svn_fs_revision_root() and
> svn_fs_txn_root() both return a svn_fs_root_t * object.
>
> That does not sound like they're both being referred to as
> "revision roots"; that sounds like they're both being
> referred to as "roots".
>
> If you're just looking to name a variable, you can call it
> RevisionOrTransaction.

I'm trying to name a class that will hold information about a transaction 
(during pre-commit) or a revision (during post-commit). Because the information 
is pretty much the same, e.g path, url, files changes, log message, etc., I 
thought I could have a common class and then either use it in both pre- and 
post-commit hooks or use it as a parent class of more specialised Transaction 
and. Revision classes. I'm working in Perl, btw.

I'm leaning towards calling it TxnRev to be honest.

G


Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851    VAT Reg No 778499447




Reply via email to