revert

How do I revert the Subversion repository, not my working copy, to a specific revision?

与世无争的帅哥 提交于 2019-12-06 04:37:38
问题 I'm relatively new to Subversion, coming from Source Safe, and it's driving me nuts. Using the Tortoise interface, Commit kept showing me .java files in my bin directory which it said were "missing" - ok, that's a separate question. Basically, when I tried several things to get rid of the spurious "bin" message, Tortoise instead deleted my entire source directory. I tried re-adding things, but when I added, it came in as new, with no history. How do I take Subversion back to a particular

revert to previous configuration from command-line?

痞子三分冷 提交于 2019-12-05 05:19:20
I have a problem running eclipse. After installing 3 plugins (from TeXlipse), i have an error: !ENTRY org.eclipse.osgi 4 0 2012-01-21 13:57:28.430 !MESSAGE Application error !STACK 1 java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry. I tried to run it with eclipse -clean but this does not help. Is there a way to revert to previous configuration from the command line ? I googled it, but see only GUI solutions from within the IDE. I'm not even sure if that feature is available by default, or it's an additional plugin. If i'm to remove

REST - revertable DELETE

不打扰是莪最后的温柔 提交于 2019-12-05 03:08:47
I have a question about HTTP DELETE and REST. I have a resource x . Depending on the state of x , deletion of x does either: Delete x permanently. Mark x as deleted. This means that x can reverted later on. I assume that HTTP DELETE must delete the resource according to the HTTP/REST specifics, instead of marking it as deleted, for example: GET on x must return 404 after the HTTP DELETE has been processed. This means that HTTP DELETE cannot be used for the second situation. How would you model this delete behaviour (both 1 and 2) in a RESTful way? Then, since some resources can be reverted,

hg: How do I revert (a single file) several commits back?

女生的网名这么多〃 提交于 2019-12-04 18:58:21
The closest answer is this one , and here's a line from it: hg revert -r <oneRevBack> fileName The last thing is to get <oneRevBack> other than using hash. I would dream of just typing <-1> . The hg syntax for "one rev back" is tip^ , where tip is the latest revision and ^ means "parent". If your working directory is not at tip, use .^ , where the dot means "current revision". 来源: https://stackoverflow.com/questions/20971306/hg-how-do-i-revert-a-single-file-several-commits-back

How do you revert ONLY directories in an SVN working copy?

三世轮回 提交于 2019-12-04 17:04:17
问题 I want to revert a directory and all sub-directories in an SVN working copy so they match the repository but I don't want to touch any files inside those directories. One of my SVN applications recursively set an SVN property on every directory in my working copy but I want to revert those changes to stop it highlighting them and trying to commit the changes to the SVN properties. Simply changing it to match the HEAD doesn't work. Any ideas? I've read through various SVN resources but none of

git: better way for git revert without additional reverted commit

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 09:31:03
问题 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, called origin) remote repository. Which is the cleanest way to get that? Also, there are also other people who have cloned that repo and who have checked out the master branch. If I would do such a change in the

How do I revert the Subversion repository, not my working copy, to a specific revision?

别来无恙 提交于 2019-12-04 09:17:34
I'm relatively new to Subversion, coming from Source Safe, and it's driving me nuts. Using the Tortoise interface, Commit kept showing me .java files in my bin directory which it said were "missing" - ok, that's a separate question. Basically, when I tried several things to get rid of the spurious "bin" message, Tortoise instead deleted my entire source directory. I tried re-adding things, but when I added, it came in as new, with no history. How do I take Subversion back to a particular revision? As if I had never happened? I know how to do this in VSS, but every time I try in TortoiseSVN, it

How to revert/recover .m file to a previous version? (autosaved blank by mistake and xcode crashed - no Source Control, no Time Machine)

坚强是说给别人听的谎言 提交于 2019-12-04 08:50:02
I've tried to search for the answer but I cannot precisely define the terms without falling under wrong threads all the time. What happened: Accidentally I've selected all the code inside a file.m and deleted it all. It became a full blank document . When I pressed Ctrl+Z to UNDO it, the xcode crashed . The problem: When I reopened the xcode (after the crash) , the file was still all blank ( It was autosaved seconds before the crash as a blank document ) - losing all my code . I could not use UNDO to rescue me on this because it autosaved and crash . What do I need: Is there a way to recover

Retrieve old version of a file without changing working copy parent

老子叫甜甜 提交于 2019-12-04 08:49:29
问题 How do you get a copy of an earlier revision of a file in Mercurial without making that the new default working copy of the file in your workspace? I've found the hg revert command and I think it does what I want but I'm not sure. I need to get a copy of an earlier revision of my code to work with for a few minutes. But I don't want to disturb the current version which is working fine. So I was going to do this: hg revert -r 10 myfile.pls Is there a way to output it to a different directory

Tortoise SVN Making a past revision the new Head

馋奶兔 提交于 2019-12-04 06:43:46
问题 I have reverted to a past revision in Tortoise SVN for my project. I want the past revision to be the new Head revision. How do I go about doing that? Updating after the reversion did not change the files that were reverted. 回答1: Rolling back to a previous revision is done via a reverse merge. Update your working copy to the latest revision Execute the following: svn merge URL_TO_LOCATION_IN_REPOSITORY . -r HEAD:PAST_REV_YOU_WANT Commit 来源: https://stackoverflow.com/questions/41625626