Modify

Opened 10 months ago

Last modified 10 months ago

#13580 new enhancement

List items at given location of certain revision in repository (ListSourceFiles)

Reported by: aschipfl Owned by: anybody
Priority: normal Component: Request-a-Hack
Severity: normal Keywords: macro plugin wiki versioncontrol repository
Cc: Trac Release: 1.2

Description

The ListSourceFilesPlugin should provide a macro that includes in wiki pages or in tickets a list of files and directories located at a given repository directory path. As per default the HEAD revision should be used if no explicit revision is given (using @... or ?rev=..., or alternatively also an optional parameter rev of the macro, similar to IncludeSourcePartialPlugin).
The returned list should look quite the same as the one shown in the Browse source section, including all the fields, except any repository properties. An optional order argument should be available to define the sort field and order. Another one limit should perhaps limit the number of returned items.

Attachments (0)

Change History (6)

comment:1 Changed 10 months ago by anonymous

Maybe another optional argument could control whether only files, only directories or both are returned.

comment:2 Changed 10 months ago by Ryan J Ollos

Where is ListSourceFilesPlugin hosted?

comment:3 in reply to:  2 Changed 10 months ago by aschipfl

Replying to Ryan J Ollos:

Where is ListSourceFilesPlugin hosted?

Nowhere (yet)…

comment:4 Changed 10 months ago by Ryan J Ollos

I see. I read this as an enhancement request for an existing plugin.

comment:5 in reply to:  4 Changed 10 months ago by aschipfl

Replying to Ryan J Ollos:

I see. I read this as an enhancement request for an existing plugin.

You mean, an extension of IncludeSourcePartialPlugin (which displays lines of source/text files)?
Well, if so, then instead of an argument limit, the arguments start and end could be used also for displaying source directory content (also allowing negative values), for the sake of consistency.

comment:6 Changed 10 months ago by aschipfl

A nice additional feature would be to have an argument type that defines whether to display only sub-directories (type=dir or type=directory), only files (type=files), or both (type=both, default).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain anybody.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.