darcs

Issue 1730 annotate: wrong error reported on empty repositories

Title annotate: wrong error reported on empty repositories
Priority bug Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, jaredj, kowey, twb
Assigned To
Topics ProbablyEasy, UI

Created on 2010-01-14.04:03:58 by twb, last changed 2010-01-14.15:19:26 by kowey.

Messages
msg9814 (view) Author: twb Date: 2010-01-14.04:03:52
Consider the following transcript:

    $ darcs init
    $ darcs anno

    darcs failed:  Annotate requires either a patch pattern or a file or directory argument.
    $ darcs anno nonexistent

    darcs failed:  Annotate does not currently work correctly on empty repositories.

Shouldn't the latter error take priority?  That is, no matter how I
use annotate in an empty repo, it should complain about the repo being
empty.
msg9821 (view) Author: kowey Date: 2010-01-14.15:17:21
Sounds like an easy one to fix.
msg9822 (view) Author: kowey Date: 2010-01-14.15:19:21
Actually, I suggest we wont-fix this.  It's really just swapping one corner case
behaviour for another when neither is much more wrong than the other.  Thanks,
though.
History
Date User Action Args
2010-01-14 04:03:59twbcreate
2010-01-14 15:17:29koweysetpriority: bug
status: unknown -> needs-implementation
topic: + ProbablyEasy, UI
messages: + msg9821
nosy: + kowey, jaredj
2010-01-14 15:19:27koweysetstatus: needs-implementation -> wont-fix
messages: + msg9822
title: annotate: wrong error reported -> annotate: wrong error reported on empty repositories