darcs

Issue 2442 matching options for show contents

Title matching options for show contents
Priority bug Status unknown
Milestone Resolved in
Superseder Nosy List bfrk
Assigned To
Topics

Created on 2015-02-22.21:50:01 by bfrk, last changed 2020-08-02.08:31:12 by bfrk.

Messages
msg18214 (view) Author: bfrk Date: 2015-02-22.21:50:00
The flags to select a specific patch don't make 
sense for show contents.

This is the relevant part of the help output:

Usage: darcs show contents [OPTION]... [FILE]...
Outputs a specific version of a file.

Options:
             --match=PATTERN       select a single patch matching PATTERN
  -p REGEXP  --patch=REGEXP        select a single patch matching REGEXP
  -h HASH    --hash=HASH           select a single patch with HASH
  -t REGEXP  --tag=REGEXP          select tag matching REGEXP
  -n N       --index=N             select one patch

The only option that is useful here is --tag, because only a tag gives
you a "specific version" of a file.

A good way to fix this would be to replace the nonsense options with
semantically correct ones: --to-match or --to-patch (there is no
-to-hash currently, but --to-match 'hash HASH' would do the trick).
These forms explicitly refer to the set of patches up to (including) a
given patch, where "up to" means "in the order in which they are
currently stored in the repository".
msg22379 (view) Author: bfrk Date: 2020-08-02.08:31:10
See also issue2458.
History
Date User Action Args
2015-02-22 21:50:01bfrkcreate
2020-08-02 08:31:12bfrksetmessages: + msg22379