darcs

Patch 192 add --keep-date option to amend-record

Title add --keep-date option to amend-record
Superseder Nosy List darcs-users, ganesh, kowey
Related Issues
Status accepted Assigned To
Milestone

Created on 2010-03-20.23:43:39 by ganesh, last changed 2011-05-10.21:06:49 by darcswatch. Tracked on DarcsWatch.

Files
File name Status Uploaded Type Edit Remove
add-__keep_date-option-to-amend_record.dpatch ganesh, 2010-03-20.23:43:34 text/x-darcs-patch
unnamed ganesh, 2010-03-20.23:43:34 text/plain
See mailing list archives for discussion on individual patches.
Messages
msg10340 (view) Author: ganesh Date: 2010-03-20.23:43:34
This allows you to amend-record a patch without changing the
recorded date. The Ignore-this: salt gets changed in any case,
so the new patch still has a fresh identity.

Probably needs grumpy-old-man review:

> 1.  What problem does the proposed feature solve?

Amending a patch makes it look like it was recently created, which is
often "wrong" especially when the amendment is quite trivial.

> 2.  What are the user stories?

User writes a patch, some time later amends it, perhaps to remove a
conflict, but wants to keep the information about when the patch was
originally recorded as that's more accurate. It can seem especially
weird if it's part of a series and the dates thus end up being not
in a sensible sequence.

This option will also be offered by darcs rebase, where the same issues
arise but perhaps more strongly.

> 3.  Does this change any pre-existing workflows? Does this introduce
> any incompatibilities?

I don't believe so.

> 4.  Does this interfere with the conceptual integrity of Darcs? Is
> the UI really Darcs-ish?

No. Yes. ;-)

> 5.  What are the possible unintended interactions with other
> pre-existing features?

There's a risk that if the salt doesn't get changed, then you end up
with identically named patches which will cause bad things to happen.
I've checked that it does get changed as things stand now, of course,
and I've also added a test case for it.

> 6.  What are the alternative approaches to solving the same problem?
> Why do we prefer this one?

Do something to explicitly set the date (set the system date? Not sure
what else is possible.) This option isn't painful to use, unlike those
mechanisms.

> 7.  Who are the stakeholders? Who is going to benefit/be affected by
> this feature: end-users, repo farms like patch-tag, darcs developers?

End-users. Someone was asking for this on #darcs a few weeks ago
(zooko? twb?)

1 patch for repository http://darcs.net:

Sat Mar 20 23:43:52 CET 2010  Ganesh Sittampalam <ganesh@earth.li>
  * add --keep-date option to amend-record
Attachments
msg10365 (view) Author: kowey Date: 2010-03-21.13:31:53
On Sat, Mar 20, 2010 at 23:43:39 +0000, Ganesh Sittampalam wrote:
> Probably needs grumpy-old-man review:

Petr has done the code review.  We discussed this live, so I think I'll
sign off as the grumpy-old-man for this.  Thanks for making it easier.

> > 4.  Does this interfere with the conceptual integrity of Darcs? Is
> > the UI really Darcs-ish?
> 
> No. Yes. ;-)

Hmm, maybe we should make this question more aggressive, like

"How does this ensure that Darcs' conceptual integrity is preserved
 and that the UI remains Darcs-ish?"

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
msg10381 (view) Author: darcswatch Date: 2010-03-21.14:25:35
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-51a35c9b249e06a40761c4b6ea71476ed9e33691
msg10382 (view) Author: darcswatch Date: 2010-03-21.14:25:38
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-51a35c9b249e06a40761c4b6ea71476ed9e33691
msg14325 (view) Author: darcswatch Date: 2011-05-10.21:06:49
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/reviewed.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-51a35c9b249e06a40761c4b6ea71476ed9e33691
History
Date User Action Args
2010-03-20 23:43:39ganeshcreate
2010-03-20 23:45:12darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-51a35c9b249e06a40761c4b6ea71476ed9e33691
2010-03-21 13:31:54koweysetnosy: + kowey
messages: + msg10365
2010-03-21 14:25:35darcswatchsetstatus: needs-review -> accepted
messages: + msg10381
2010-03-21 14:25:38darcswatchsetmessages: + msg10382
2011-05-10 21:06:49darcswatchsetmessages: + msg14325