darcs

Issue 1093 overlong patch name warning

Title overlong patch name warning
Priority wishlist Status wont-fix
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, kowey, thorkilnaur, twb
Assigned To
Topics

Created on 2008-09-23.03:00:42 by twb, last changed 2009-08-27.14:20:07 by admin.

Files
File name Uploaded Type Edit Remove
draft_-resolve-issue-1093_-warn-about-ugly-patch-names_.dpatch twb, 2008-11-16.08:04:29 text/x-darcs-patch
unnamed twb, 2008-11-16.08:04:29 text/plain
Messages
msg6090 (view) Author: twb Date: 2008-09-23.03:00:41
It's bad practice (I believe) to have really long patch names.  Let
"long" be "more than seventy characters".  It would be useful if darcs
reminded users when they were naughty in this respect.

Here's a mockup.  Note that it tells users about the Right Way,
i.e. --edit.

    $ darcs rec -am 'Disable friendly fire by default.'

No change here, because the name is ≤70 characters.

    $ darcs rec -a
    What is the patch name? [user types long string here]

    Warning: patch names should be concise, but the supplied name is
    very long.  Use --edit-description if you need to add additional
    commentary.

    Change patch name? [Y/n/q]

The user can choose N to override this warning, Y to go back to the
patch name step, or q to abort the entire record operation.

    $ darcs rec -am "Long example `seq 99`."
    Warning: patch names should be concise, but the supplied name is
    very long.  Use --edit-description if you need to add additional
    commentary.  Continuing anyway.

Because used in "non-interactively", this just prints a warning and
continues on anyway.
msg6682 (view) Author: twb Date: 2008-11-16.08:04:29
This is my first draft.  It only works if you use -m.  To make it work
with interactive use, I think I probably have to change get_log
extensively.

Sun Nov 16 18:45:55 EST 2008  Trent W. Buck <trentbuck@gmail.com>
  * draft: Resolve issue 1093: warn about ugly patch names.
Attachments
msg7791 (view) Author: twb Date: 2009-05-08.09:22:34
Eric said:

YES - warn on patches starting with '-'
 YES - warn on "strange" patch names http://bugs.darcs.net/issue1000
 MAYBE - warn on overly long patch names (as this could cause some
         concrete practical problems for other folks, wrt wrapping)
 NO - warn on patch names < 10
 NO - warn on punctuation
History
Date User Action Args
2008-09-23 03:00:42twbcreate
2008-09-23 22:17:50droundysetpriority: wishlist
nosy: kowey, dagit, simon, twb
2008-11-16 08:04:32twbsetfiles: + draft_-resolve-issue-1093_-warn-about-ugly-patch-names_.dpatch, unnamed
nosy: + dmitry.kurochkin, thorkilnaur
status: unread -> unknown
messages: + msg6682
2009-05-08 09:22:37twbsetstatus: unknown -> wont-fix
nosy: kowey, dagit, simon, twb, thorkilnaur, dmitry.kurochkin
messages: + msg7791
2009-05-08 09:22:49twbsetnosy: kowey, dagit, simon, twb, thorkilnaur, dmitry.kurochkin
2009-08-10 23:46:13adminsetnosy: - dagit
2009-08-25 17:25:18adminsetnosy: + darcs-devel, - simon
2009-08-27 14:20:07adminsetnosy: kowey, darcs-devel, twb, thorkilnaur, dmitry.kurochkin