[darcs-devel] [patch1182] Implementation of the command 'darcs undo'.

Marcio Diaz bugs at darcs.net
Mon Aug 18 12:07:40 UTC 2014


Marcio Diaz <marcio.diaz at gmail.com> added the comment:

Taking into account your suggestions I implemented two 
separate commands: 'undo' and 'redo'.
Both undo or redo just one operation.
I think you were right, it seems much simpler now.

For now, as indicated by the test, its only enabled for
record, unrecord, amend and obliterate.

For the next version I'll probably move handleUndoFiles
out of the function finalizeRepositoryChanges, 
since the revert command doesn't call this function.

Now we are going to support much more commands, 
so I wonder what will be the protocol (if any) 
to clear the saved states.

2 patches for repository http://darcs.net/screened:

patch c9b040dd1a6d7d0de140beb23f59b9440f00cab5
Author: Marcio Diaz <marcio.diaz at gmail.com>
Date:   Mon Aug 18 00:10:31 ART 2014
  * Implementation of the commands 'undo' and 'redo'.

patch b6f633d4c9806861a4e5a3f12a064ae10d652a4f
Author: Marcio Diaz <marcio.diaz at gmail.com>
Date:   Mon Aug 18 00:11:35 ART 2014
  * Test for undo and redo commands.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1182>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-preview.txt
Type: text/x-darcs-patch
Size: 39918 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20140818/fc9bbaf7/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implementation-of-the-commands-_undo_-and-_redo__.dpatch
Type: application/x-darcs-patch
Size: 57665 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20140818/fc9bbaf7/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unnamed
Type: application/octet-stream
Size: 5 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/darcs-devel/attachments/20140818/fc9bbaf7/attachment-0001.obj>


More information about the darcs-devel mailing list