Pergunta

I am trying to use the correct (non-deprecated) versions of Add/checkout/commit etc, but these actions want an int of "Depth". In the program I am writing I don't always know the depth. It would be nice to use the INFINITY 'keyword' similar to using SVN from command line with --depth.

However I don't see how to do this in the Java code using SVNClient from javahl.

Is my best bet just to slap Integer.MAX to 'simulate' infinity depth?

Foi útil?

Solução

try

int depthInfinity = org.tigris.subversion.javahl.Depth.infity;

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top