[darcs-users] Getting a directory listing of the repository at a specific point

Tommy Pettersson ptp at lysator.liu.se
Tue Sep 1 14:27:08 UTC 2009

On Wed, Aug 26, 2009 at 10:47:06AM +0100, Ashley Moran wrote:
> I'm just looking a bit more at the Ohloh adapter.  One of the tests is  
> for directory listings at a given point in time.  For example, the  
> Mercurial adapter is implemented by calling
>    hg manifest -r <token>
> Is there an equivalent command in darcs, or a way of getting this  
> information easily?  And if there is a way of doing it, can it be done  
> up to a particular patch addition?
> Because of the timeline-based nature of Ohloh, it'd be nice to do this  
> do a patch hash, eg
>    darcs manifest --to-match='hash <...>'

I think 'darcs annotate path/to/a/directory/ ' is the closes you
can get. It takes a --patch or --tag option, and will show what
files where present in the directory at the given tag (or patch
in inventory order), what patch put the file in the directory,
the file's original name, and if it was modified by the patch or
not (in case of --patch).

The output format is probably more suitable for analyzing the
effects of patches, but it might be possible to parse it and
produce a plain list of file names.

Tommy Pettersson <ptp at lysator.liu.se>

More information about the darcs-users mailing list