revert

Revert svn files by file pattern

回眸只為那壹抹淺笑 提交于 2019-12-04 06:38:27
问题 I'm trying to find a command (can be bash command) to revert a group of svn files. Let's say I have some changes in my check-out and I run svn st and get this output: My-MacBook-2:trunk aetzioni$ svn st M SomeFolderA/src/main/java/com/mycompany/package/classA.java M SomeFolderA/main/java/com/mycompany/package/classB.java M SomeFolderB/src/main/java/com/mycompany/package/classC.java Now I want to find a command that does svn revert on all the files under SomeFolderA . I tried something like

git解决错误提交分支

老子叫甜甜 提交于 2019-12-04 01:30:42
[master] ... 0 - (1) - (m1) - 2 - (3) - 4 \ [develop] 5 - 6 - 7 说明: 带括号的都是错误的commit,m1是merge提交,每个数字代表commit和commit号 需要放到develop分支 我的做法(目前看来没问题,不确定是否正确): git checkout master git pull git diff 0 1 > patch1 (这两步的主要想法是物理备份一下,万一改乱了,还有个修改记录) git diff 2 3 > patch2 git revert m1 -m 2 (这样直接会将1 和 m1产生修改的所有文件反转) git revert 3 此时,分支状态是: [master] ... 0 - (1) - (m1) - 2 - (3) - 4 - rm1 - r3 \ [develop] 5 - 6 - 7 然后将错误提交应用到develop上 git checkout develop git pull git cherry-pick 1 git cherry pick 3 (进入merge按照提示解决、继续) 此时分支状态是: [master] ... 0 - (1) - (m1) - 2 - (3) - 4 - rm1 - r3 \ [develop] 5 - 1 - 6 - 7 - 3

Rolling an evolution back

旧城冷巷雨未停 提交于 2019-12-03 22:24:41
This question might seem stupid, but I cannot find any instruction on how to roll back an evolution in Play 2.0. Google only finds pages which say that the "Downs" section of an evolution file is used for that and that's all. Any pointers or instructions will be appreciated. The Downs part is mainly used to revert an Evolution when the script has changed. That is, you have a project with 2.sql applied to the database and then, due to a merge, 2.sql is modified in the source. Play will run Downs on the old version and then Ups on the new 2.sql to ensure the database is in sync with the codebase

git revert <hash> not allowed due to a merge but no -m option was given

故事扮演 提交于 2019-12-03 14:52:59
问题 I am trying to revert to a certain 'hash' number in git, by using the 'revert' command. I am using the following command: git revert c14609d74eec3ccebafc73fa875ec58445471765 But, I am getting the following returned: error: Commit c14609d74eec3ccebafc73fa875ec58445471765 is a merge but no -m option was given. fatal: revert failed As a new git user, please can you explain what is happening & what I have to do to resolve this. I want to revert back to this certain commit (

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

谁说我不能喝 提交于 2019-12-03 10:11:06
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 them seem to deal with this edge case. You could use find combined with svn revert : find . -type d |

What is the difference between hg revert and hg backout?

混江龙づ霸主 提交于 2019-12-03 09:52:18
Both hg revert and hg backout revert changes made by a former revision. What is the difference between the two? Given the history of changesets: A --- B --- C --- D --- E [bad] (*) hg revert -r B : Stay at current revision, but update the working directory as of revision B . It has the effect of a patch that revokes the changes of C , D and E . hg backout -r C : Update the working directory so that it contains the merge of revision C's parent ( B ) and the current revision, preserving the changes made in between the two revisions (working dir still contains changes of revision D and E ). This

Reset/revert a whole branch to another branches state?

血红的双手。 提交于 2019-12-03 06:18:30
I have a branch A and a branch B (and some other branches). Lets say A 's commit history looks like: commit 5 commit 4 commit 3 ... And B 's commit history: some other commit commit 4 merge of other stuff from branch C (into branch B ) commit 3 ... Basically what I want is to "delete" all changes made by the commits some other commit and merge of other stuff from branch C to branch B . I want the working tree of branch B to be exactly the same like branch A 's working tree. How do I achieve this? One way to achieve this is through git reset . While on branch B execute git reset --hard A

How do I revert a big change in CVS?

一个人想着一个人 提交于 2019-12-03 05:36:37
问题 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 enough. I have RTFM and STFW, and I tried this: cvs co modulename # Note no -P option cvs up -jHEAD -jMAIN:2008-12-30 modulename But that doesn't work - the new

Is there a difference between git reset --hard HEAD and git checkout .?

萝らか妹 提交于 2019-12-03 04:18:56
问题 If I make changes to the working tree and have not yet committed, and I would like to revert the changes I have made, is there a difference between git reset --hard HEAD and git checkout . ? 回答1: git checkout -- . will obviously only work on the current directory (and subdirectories thereof), git reset --hard will operate on the complete working tree. git checkout -- . will only update the working tree and leave already staged files as is, whereas git reset --hard will match index and working

SVN/TortoiseSVN painfully slow

五迷三道 提交于 2019-12-03 03:29:59
问题 I'm experiencing painfully slow operations with one of our SVN repositories/projects. For example, it's taking 5-10 minutes to revert the changes in one small file (10 KB). Or about 40-60 minutes to check out the project of 100 MB. There are about 30 other projects on the same server, some vastly bigger than this one, and none of them preform like this. One thing to note is that this project is a Magento project. It's not very large in terms of disk space, but I have 23k Files and 11k folders