darcs

Issue 141 darcs query cat command

Title darcs query cat command
Priority feature Status resolved
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, jch, kapheine, kowey, soloturn, thorkilnaur, tommy
Assigned To kowey
Topics

Created on 2006-02-28.23:51:14 by kowey, last changed 2009-10-24.00:36:03 by admin.

Messages
msg522 (view) Author: kowey Date: 2006-02-28.23:51:13
I believe this is one of the minor to-do list items we came up with in FOSDEM.

Somebody ought to implement a 'darcs cat' command which lists the contents of a
file managed by darcs.  This would be useful because we could pass flags to it
like --to-patch (?).
msg528 (view) Author: kapheine Date: 2006-03-01.04:57:39
> > I believe this is one of the minor to-do list items we came up with in FOSDEM.
> >
> > Somebody ought to implement a 'darcs cat' command which lists the contents of a
> > file managed by darcs.  This would be useful because we could pass flags to it
> > like --to-patch (?).
>
> This sounds good.  I like the idea, but would 'cat' really be obvious to people?

Something like 'view' might make sense, but what would you do for
binary files?  In that case, you would probably want to redirect to a
file.  Which makes me think of the opposite, which is a 'get-file'
command that can optionally be redirected to stdout.  Of course then
you have to worry about files overwriting the current version in the
current directory.  So maybe 'view' is the command but when you try to
view a binary file it will normally just mention something about the
file.  If you use the redirect command line option it will write out
the actual file.

I don't have a real solution right now, I'm just bringing up some issues.
msg557 (view) Author: jch Date: 2006-03-07.13:48:52
> Somebody ought to implement a 'darcs cat' command which lists the
> contents of a file managed by darcs.  This would be useful because
> we could pass flags to it like --to-patch (?).

FWIW, I'd use this command in vc-darcs.el.  I'm currently hacking
around its lack by doing the Emacs Lisp equivalent of

    darcs diff --from-patch=$1 | patch -p1 -R

which, I hope you'll agree, is ridiculous.

I believe it should be a subcommand of ``darcs query'', the ``darcs help''
output is already too long.

I also have my doubts about the name ``cat'', but that's the best we
could come up with.

And no, I don't find it intuitive to overload blame...

                                        Juliusz
msg724 (view) Author: dagit Date: 2006-07-03.20:22:30
On 2/28/06, Eric Kow <bugs@darcs.net> wrote:
>
> New submission from Eric Kow <06sd1oi02@sneakemail.com>:
>
> I believe this is one of the minor to-do list items we came up with in FOSDEM.
>
> Somebody ought to implement a 'darcs cat' command which lists the contents of a
> file managed by darcs.  This would be useful because we could pass flags to it
> like --to-patch (?).

This sounds good.  I like the idea, but would 'cat' really be obvious to people?

Thanks,
Jason
msg874 (view) Author: kowey Date: 2006-08-08.20:49:08
David agrees that we use the query subcommand framework for this, and so
renaming the bug.
msg979 (view) Author: soloturn Date: 2006-09-07.17:40:29
no matter how it is called, it would be nice to have it.
msg2003 (view) Author: kowey Date: 2007-08-05.21:01:16
Resolved in unstable with:

Thu Aug  2 06:08:13 CEST 2007  Eric Kow <eric.kow@gmail.com>
  * [issue141] Implement darcs show contents command.
History
Date User Action Args
2006-02-28 23:51:14koweycreate
2006-03-01 04:57:41kapheine1setstatus: unread -> unknown
nosy: + kapheine1
messages: + msg528
2006-03-07 13:48:53jchsetnosy: + jch
messages: + msg557
2006-07-03 20:22:32dagitsetnosy: + dagit
messages: + msg724
2006-08-08 20:49:12koweysetnosy: droundy, jch, tommy, kowey, dagit, kapheine1
messages: + msg874
title: darcs cat command -> darcs query cat command
2006-09-07 17:40:34soloturnsetnosy: + soloturn
messages: + msg979
2007-08-02 21:19:02koweysetstatus: unknown -> testing
nosy: + beschmi
2007-08-05 21:01:16koweysetstatus: testing -> resolved-in-unstable
messages: + msg2003
2007-10-21 19:59:03koweysetstatus: resolved-in-unstable -> resolved-in-stable
2008-09-16 21:30:10adminsetstatus: resolved-in-stable -> resolved
nosy: droundy, jch, tommy, beschmi, kowey, dagit, kapheine1, soloturn
2009-08-06 17:32:58adminsetnosy: + markstos, jast, Serware, dmitry.kurochkin, darcs-devel, zooko, mornfall, simon, thorkilnaur, - droundy, jch, kapheine1, soloturn
2009-08-06 20:30:23adminsetnosy: - beschmi
2009-08-10 21:44:20adminsetnosy: + kapheine1, jch, soloturn, - markstos, darcs-devel, zooko, jast, Serware, mornfall
2009-08-10 23:53:30adminsetnosy: - dagit
2009-08-25 17:47:44adminsetnosy: + darcs-devel, - simon
2009-08-27 14:10:45adminsetnosy: jch, tommy, kowey, darcs-devel, kapheine1, soloturn, thorkilnaur, dmitry.kurochkin
2009-10-24 00:36:03adminsetnosy: + kapheine, - kapheine1