Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the SVN-Look CPAN distribution.

Report information
The Basics
Id: 70919
Status: resolved
Priority: 0/
Queue: SVN-Look

People
Owner: GNUSTAVO [...] cpan.org
Requestors: chris.van.engelen [...] vtspn.nl
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Why no HEAD as possible revision,
Date: Tue, 13 Sep 2011 11:32:17 +0200
To: <bug-svn-look [...] rt.cpan.org>
From: "Engelen, C.P.M. van (Chris)" <chris.van.engelen [...] vtspn.nl>
Gustavo, I'm using SVN::Look for getting a tree listing of a repository, for the latest revision. But in order to get the latest revision, I first need to open the repository with a dummy revision, in order to be able to call the youngest method to get the HEAD revision: use SVN::Look; my $svnRepository = SVN::Look->new( "/infrasvn/repositories/source/ServerWindows", -r => 1 ); $svnRepository = SVN::Look->new( "/infrasvn/repositories/source/ServerWindows", -r => $svnRepository->youngest( ) ); my @filePaths = $svnRepository->tree( "DS30", "--full-paths", "--non-recursive" ); Is there another way of doing this. Preferably, I would like to use something like -r => HEAD when opening a repository. Regards, Chris van Engelen Software developer infrastructuur Show quoted text
___________________________________________________ vts Politie Nederland, Divisie Informatievoorziening & Technology Tel. mobiel: 06 11956342 Tel. verkort: 23372 Helpen Nederland veiliger te maken
-------------------------Disclaimer------------------------------- De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) toestemming kregen dit bericht te lezen. Gebruik door anderen dan geadresseerde(n) is verboden. De informatie in dit e-mailbericht (en bijlagen) kan vertrouwelijk van aard zijn en kan binnen het bereik vallen van een geheimhoudingsplicht en een verschoningsrecht. -------------------------------------------------------------------
Hi Cris, You're right. The -r/-t arguments should be optional. In their absense it should behave as if '-r HEAD' had been passed. I've just uploaded a new version (0.27) of SVN::Look to PAUSE. It should appear shortly on CPAN. Please, give it a try and let me know if it works. Regards. Gustavo.
Subject: RE: [rt.cpan.org #70919] Why no HEAD as possible revision,
Date: Mon, 19 Sep 2011 16:45:38 +0200
To: <bug-SVN-Look [...] rt.cpan.org>, <gnustavo [...] cpan.org>
From: "Engelen, C.P.M. van (Chris)" <chris.van.engelen [...] vtspn.nl>
Gustavo, Thanks for the update, I tested this, without specifying the -r option in the call to new, and this works fine for me. Perhaps you should adjust the documentation of the new method a bit. Currently, it states: new REPO [, WHAT, NUMBER] The SVN::Look constructor needs one or three arguments: REPO is the path to the repository. WHAT must be either '-r' or '-t', specifying if the third argument is a revision number or a transaction number, respectivelly. NUMBER is either a revision or transaction NUMBER, as specified by WHAT. This correctly shows that WHAT and NUMBER are now optional. But I would suggest that in the description of WHAT, you should explicitly mention that if not specified, the HEAD revision is used: WHAT must be either '-r' or '-t', specifying if the third argument is a revision number or a transaction number, respectively. If neither -r or -t is specified, the HEAD revision is used. (note that "respectivelly" should be spelled with one "l"). Thanks again for the support. Regards, Chris van Engelen Software developer infrastructuur Show quoted text
___________________________________________________ vts Politie Nederland, Divisie Informatievoorziening & Technology Tel. mobiel: 06 11956342 Tel. verkort: 23372 Helpen Nederland veiliger te maken
-----Oorspronkelijk bericht----- Van: Gustavo Leite de Mendonça Chaves via RT [mailto:bug-SVN-Look@rt.cpan.org] Verzonden: zondag 18 september 2011 04:47 Aan: Engelen, C.P.M. van (Chris) Onderwerp: [rt.cpan.org #70919] Why no HEAD as possible revision, <URL: https://rt.cpan.org/Ticket/Display.html?id=70919 > Hi Cris, You're right. The -r/-t arguments should be optional. In their absense it should behave as if '-r HEAD' had been passed. I've just uploaded a new version (0.27) of SVN::Look to PAUSE. It should appear shortly on CPAN. Please, give it a try and let me know if it works. Regards. Gustavo.
-------------------------Disclaimer------------------------------- De informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) toestemming kregen dit bericht te lezen. Gebruik door anderen dan geadresseerde(n) is verboden. De informatie in dit e-mailbericht (en bijlagen) kan vertrouwelijk van aard zijn en kan binnen het bereik vallen van een geheimhoudingsplicht en een verschoningsrecht. -------------------------------------------------------------------