[darcs-users] How to reset a file to an older state?

Thomas Schwinge tschwinge at gnu.org
Wed Apr 26 08:52:35 UTC 2006


On Tue, Apr 25, 2006 at 05:31:46PM -0400, I wrote:
> make F up to date again, possibly creating conflicts in F?
> 
> [...]
>   darcs pull -a

How would I (again: non-interactively) check if that pulling created
conflicts?  Parse `darcs pull's output?  Ugly.  Record the changes as
they are, run `darcs revert -a', then `darcs resolve', followed by `darcs
whatsnew F' afterwards and parse its output?  Ugly.  Or for the last
`darcs whatsnew F' step, rather rely on the fact that it will return an
exit value of `1' if there are no changes and `0' if there are changes
(i.e. conflicts)?  Ugly.


Am I the first one to try to use darcs non-interactively?


Regards,
 Thomas




More information about the darcs-users mailing list