Modify

Opened 5 years ago

Last modified 4 years ago

#13580 new enhancement

List items at given location of certain revision in repository

Reported by: aschipfl Owned by: Ryan J Ollos
Priority: normal Component: IncludeMacro
Severity: normal Keywords: macro plugin wiki versioncontrol repository
Cc: Trac Release: 1.2

Description (last modified by aschipfl)

The plugin 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 (7)

comment:1 Changed 5 years ago by anonymous

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

comment:2 Changed 5 years ago by Ryan J Ollos

Where is ListSourceFilesPlugin hosted?

comment:3 in reply to:  2 Changed 5 years ago by aschipfl

Replying to Ryan J Ollos:

Where is ListSourceFilesPlugin hosted?

Nowhere (yet)…

comment:4 Changed 5 years 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 5 years 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 5 years 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).

comment:7 in reply to:  5 Changed 4 years ago by aschipfl

Component: Request-a-HackIncludeMacro
Description: modified (diff)
Owner: changed from anybody to Ryan J Ollos
Summary: List items at given location of certain revision in repository (ListSourceFiles)List items at given location of certain revision in repository

Replying to 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.

Meanwhile, IncludeMacro now also incorporates the features of the deprecated IncludeSourcePartialPlugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Ryan J Ollos.

Add Comment


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

 
Note: See TracTickets for help on using tickets.