[darcs-devel] [issue1289] wish: warn when applying duplicate patch?

Trent Buck bugs at darcs.net
Sun Dec 28 11:52:08 UTC 2008


New submission from Trent Buck <trentbuck at gmail.com>:

It seems that Eric applied an older version of the patch below to the
main repo, which meant that I pulled it back in.  Apparently the only
thing I had changed in my local, amended copy was the timestamp.

I wouldn't even have noticed that there was a duplicate patch in my
repo, except that I was pulling a patch with "Trent" as the author.
Perhaps darcs should warn when a "duplicate" non-conflict is applied?

$ darcs obl --match 'date "2008-12-26T21:42:43+1100"'
Fri Dec 26 21:42:43 EST 2008  Trent W. Buck <trentbuck at gmail.com>
  * Improve readability of bug reporting.
  Moving "at <location>" to the first line gives the descriptive string
  a line all to itself.  For example, darcs show bug:

      darcs: bug at src/Darcs/Commands/ShowBug.lhs:57 compiled Nov  4 2008 12:05:43
      This is actually a fake bug in darcs.
Shall I obliterate this patch? (1/1)  [ynWsfvpxdaqjk], or ? for help: v
[...] duplicate
|hunk ./src/Darcs/Bug.hs 19
|-    errorDoc $ text ("bug at "++_bugLoc bs) $$ s $$
|+    errorDoc $ text "bug in darcs!" $$ s <+> text ("at "++_bugLoc bs) $$
|:
hunk ./src/Darcs/Bug.hs 19
-    errorDoc $ text "bug in darcs!" $$ s <+> text ("at "++_bugLoc bs) $$
+    errorDoc $ text ("bug at "++_bugLoc bs) $$ s $$
Shall I obliterate this patch? (1/1)  [ynWsfvpxdaqjk], or ? for help: y
Finished obliterating.

----------
messages: 6919
nosy: dmitry.kurochkin, kowey, simon, thorkilnaur, twb
status: unread
title: wish: warn when applying duplicate patch?

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1289>
__________________________________


More information about the darcs-devel mailing list