revert

What's the best way to implement gmail style "undo" in Rails?

I think it important to have an "undo" method ala gmail when destroying records instead of displaying an annoying popup that says, "Are you sure?". The way that I've implemented this is to have a "deleted_at" timestamp column in the model which gets timestamped when destroy method is called def destroy @foo = Foo.find(params[:id]) ...

Roll back or revert entire svn repository to an older revision

I messed up on my SVN repository and now need to revert the entire repository from revision 28 to 24 and don't want to deal with diffs or conflicts. Is there a quick and simple way to do this? I've been able to revert back single files before fine with the merge command - but in this instance it wants to add all of the files back into th...

How do I revert a big change in CVS?

One of my colleagues has totally messed up the contents of a directory in our main CVS repository. I need to just revert the whole module to the state it was in at the end of last year. What's the CVS command to do this please? He has added and removed hundreds of files, so a simple "copy over files from old checkout and commit" isn't...

mySQL database password change now crashes Joomla.

I have a mySQL database behind a Joomla install. I changed the database password because I forgot it but now Joomla crashes looking for the database. I guess joomla has the password written somewhere - if anyone knows I might be able to manual edit it and enter the new database password. Otherwise I'm hoping a manual install of a back...

Mercurial: Revert a single hunk

How do I revert a single hunk in Mercurial, similar to the way it's done in darcs, i.e. it asks me for each hunk and file whether I want to revert it? Is it possible using TortoiseHg? Thanks ...

return subversion working copy to an old revision

Hello I had some problems with my subversion server and i had to restore it from backup but it is an older one. For example i have the server at revision 400 but my working copy is at 405. How can i get my working copy to an older revision withought loosing my work and recommit the changes. Thanks a lot ...

Re-doing a reverted merge in Git

I have run into a bit of a problem here: I had a problem-specific branch '28s' in git, that I merged in the general 'develop' branch. Turns out I had done it too fast, so I used git-revert to undo the merge. Now, however, the time has come to merge '28s' into 'develop', but git-merge command sees the original merge, and happily announces...

jquery Multiple Sortables/droppable Revert Issue

The Scenario: I have a single page that has three sortables on it (arranged horizontally relative to one another), all connected via the "connectWith" option. Between the three of them, I can sort, drag and drop...no problems. I added a droppable on the bottom left of the page so that the user can drop an item from any of the three lists...

Subversion: Can trunk be reset to previous revision after branching/tagging?

Hello! I have many projects depending on each other in trunk. I made several commits which led to dependency problems. I tagged /trunk to /tags/trunk-experimental and now want to "revert" the last N changes (which led to problems), so that my /trunk is good again. Can this be done in a straightforward way? I tried to just check out f...

Is there a way to recover from an accidental "svn revert"?

Hi all, I managed to shoot myself in the foot this morning by doing the following: Started working on a change to my project Made a bunch of edits to a bunch of files Realized that my approach was all wrong, and that I needed to start over cd'd to the top level of my project and did a "svn --recursive revert ." to restore my local san...

git: better way for git revert without additional reverted commit

I have a commit in a remote+local branch and I want to throw that commit out of the history and put some of them into an own branch. Basically, right now I have: D---E---F---G master And I want: E---G topic / D master That should be both in my local and in the (there is only one, call...

How to revert files with specific extension in svn?

I would like to do something like this: svn revert --recursive mydata/*/*.txt and I want it to revert all files which have extension *.txt in the directory mydata. Is there a way to do that? ...

Why Subversion skips files which contain the @ symbol?

when I try to execute command like this (from a command-line or Perl script - it doesn't matter): svn revert "build\[email protected]" SVN skips this file and outputs: Skipped 'build\myfile' I tried doing: svn revert "build\*.meta" But it gives the same result. I can revert these files from the GUI. And I can revert these files...

Can't Push After git reset --soft HEAD^

Hey guys, just now I committed and pushed something (yes, my mistake on the push) that I decided I should 'revert' or 'undo'. So I was told to issue git reset --soft HEAD^ on my end, and I figured this would somehow create a 'revert' commit that once committed would make it as if the change never happened. I don't mind if the history of ...

How do revert a local branch back to how it is in github?

I did a bit of development against the wrong branch in my local repository. I did a git branch without next doing a git checkout. The commands look something like this: #On branch development git branch release-v0.2.0b # changes and several commits git push origin release-v0.2.0b And that's when I realized I was working on the wrong...

SVN Synchronize vs Update to Head (subclipse)

Hi all, I'm fairly new to both Subversion and Subclipse and am seeing some issues that lead me to believe there is a difference between updating to head, and synchronizing. Specifically I find that when I try to revert (using the subclipse history), I often get a message saying "Cannot reverse merge a range from a path's own future histo...

Undo a particular commit in git

What is the simplest way to undo a particular commit that is: not in the head or HEAD Has been pushed to the remote. Because it is not the latest commit, git reset HEAD doesn't work. And because it has been pushed to a remote, git rebase -i and git rebase --onto will cause some problem in the remotes. More so, I don't wan...

Dojo Grid - store.revert() not working

Hello, I try to validate the modified fields of a dojo grid. If the validation fails, I call store.revert() and break out of the store fetch loop. But this doesn't seem to be working. In FF I get this error: 'assertion failed in ItemFileWriteStore'. Any help is appreciated. Thanks. ...

git: undo a merge?

Within my master branch, I did a git merge some-other-branch locally, but never pushed the changes to origin master. I didn't mean to merge, so I'd like to undo it. When doing a git status after my merge, I was getting this message: # On branch master # Your branch is ahead of 'origin/master' by 4 commits. Based upon the instructions ...

Git: How to revert everything exactly to the state of a prior commit?

If there have been commits and many changes since an earlier commit, is there a simple way to revert everything to the exact state of that earlier commit? If so, is it possible to easily switch back to the current state if I should so desire as well? I've realized that this old commit is actually the correct one, and want to maintain a...