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 )
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
comment:3 Changed 5 years ago by
comment:4 follow-up: 5 Changed 5 years ago by
I see. I read this as an enhancement request for an existing plugin.
comment:5 follow-up: 7 Changed 5 years ago by
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
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 Changed 4 years ago by
Component: | Request-a-Hack → IncludeMacro |
---|---|
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 argumentlimit
, the argumentsstart
andend
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.
Maybe another optional argument could control whether only files, only directories or both are returned.