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

64 Views Asked by At

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?

2

There are 2 best solutions below

0
mherzl On

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.

1
Ganesh Sittampalam On

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).