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

Re: svn commit: rev 1987 - branches/issue-654-dev/subversion/libsvn_fs

From: <cmpilato_at_collab.net>
Date: 2002-05-21 21:33:34 CEST

"Bill Tutt" <rassilon@lyra.org> writes:

> The other funky part is taking this "successor CopyID" calculation in
> combination with the TxnID ordering.
>
> i.e.:
> get TXN_ID from node revision id.
> Lookup REVISION with TXN_ID
> I = 1
> Lookup the POSSIBLE_SUCCESSOR_TXN_ID for REVISION+I
> While REVISION+I is valid
> AND Not Exists NodeID.<calculated
> CopyID>.POSSIBLE_SUCCESSOR_TXN_ID:
> I++
> Lookup the POSSIBLE_SUCCESSOR_TXN_ID for REVISION+I
>
> If you find a NodeRevision that exists, you've found your successor, and
> you should be able to assert that the predecessor is the NodeRevision
> you started from.
>
> Otherwise there is no possible successor.

Yep yep. If I'd actually read your whole mail, I would have seen that
I didn't *need* to type up a solution, because Tutt's already done
it. :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 21 21:35:16 2002

This is an archived mail posted to the Subversion Dev mailing list.