'In darcs, is there a way to recover rolled-back patches?

In my darcs repo, I needed to rollback to look at a prior change. I made a copy of what I thought was the root directory, rolled back, and deleted.

Now I realize that the root was actually one directory up. So the repo I rolled back was actually my only copy.

Is there a way to access old commits in darcs, as there is in git?



Solution 1:[1]

I have not found a way to recover rolled-back patches.

I did find some artifacts that I will now recover the recent changes from.

Note to self: when copying a repository, always use darcs clone, never cp -r. And check to verify where the repository root is.

Could also be helpful if darcs had more recovery features.

Solution 2:[2]

If you used the darcs rollback command, then the changes are just undone in the working directory. You can just use darcs revert to undo the rollback (i.e. redo the changes).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mherzl
Solution 2 GS - Apologise to Monica