[darcs-users] Unrevert behavior inconsistent with revert

Gwern Branwen gwern0 at gmail.com
Fri Jan 30 16:39:25 UTC 2009


So the other day I happened to need to back out some changes in my
xmonad.hs (I've been trying out sjanssen's monoid branch of
xmonad-core), and so I reverted it. Once I was done testing, I
unreverted. Or, at least I tried to.

I had made the mistake of doing 'revert xmonad.hs' and naively tried
to do 'unrevert xmonad.hs'. This didn't work:

 gwern at craft:39361~>revert .xmonad.hs
 Reverting changes in ".xmonad.hs"..

 There are no changes to revert!
 Finished reverting.
 gwern at craft:39360~>unrevert .xmonad.hs

 darcs failed:  Bad argument: `.xmonad.hs'
 Usage: darcs unrevert [OPTION]...
 Undo the last revert (may fail if changes after the revert).

 See darcs help unrevert for details.

(I eventually tried unrevert with no arguments, and had to manually
select the changes to xmonad.hs.) Now, personally, I think unrevert
should take a file argument since it makes just as much sense as for
revert. Thoughts? Is this a bug or an enhancement? Or a feature?

-- 
gwern


More information about the darcs-users mailing list