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

javasvn

From: Cédric Chabanois <cchabanois_at_no-log.org>
Date: 2004-11-25 23:20:49 CET

Hi Alexander !

In SVNClient.java, this method is used to transform a JavaHl Revision to
a revision number.

    private static long getRevisionNumber(Revision revision) {
        if (revision == null) {
            return -2;
        }
        if (revision instanceof Revision.Number) {
            return ((Revision.Number) revision).revNumber;
        }
        return -2;
    }

But what if Revision is BASE or a date ?
(-2 is for HEAD I think

fileContent seems to handle the BASE case however.

Thanks,

Cédric
(subclipse developper)
Received on Fri Nov 26 09:20:49 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.