Assuming that you have committed a few changes to trunk and want to merge the same to a branch, you can use the "merge -c xyz" pattern as follows:
Let us say that the revision that I committed my changes on the trunk was "86077". I do a dry run to check what changes will get merged if I do the real thing.
============================
anil@localhost:~/Branch_5_x$ svn merge -c 86077 https://svn.jboss.org/repos/jbossas/trunk/ --dry-run
U component-matrix/pom.xml
U server/src/main/org/jboss/deployment/security/AbstractSecurityDeployer.java
U server/src/main/org/jboss/deployment/security/EjbPolicyConfigurationFacade.java
U server/src/main/org/jboss/web/deployers/WarSecurityDeployer.java
A server/src/main/org/jboss/web/deployers/SecurityActions.java
U server/src/etc/deployers/security-deployer-jboss-beans.xml
A testsuite/src/resources/web/xacml/requestAttrib/WEB-INF/jbossxacml-config.xml
A testsuite/src/resources/security/authorization/xacml-ejb/META-INF/jbossxacml-config.xml
U testsuite/imports/sections/security.xml
U testsuite/imports/sections/web.xml
U security/.classpath
A security/src/main/org/jboss/security/deployers
A security/src/main/org/jboss/security/deployers/XacmlConfigParsingDeployer.java
A security/src/main/org/jboss/security/deployers/JAXBElementParsingDeployer.java
A security/src/main/org/jboss/security/deployers/AclConfigParsingDeployer.java
U security/pom.xml
===============================
Ok. Those are the changes I want it into my branch. Now I do the real merge without the "--dry-run" option.
======================================
anil@localhost:~/Branch_5_x$ svn merge -c 86077 https://svn.jboss.org/repos/jbossas/trunk/
U component-matrix/pom.xml
U server/src/main/org/jboss/deployment/security/AbstractSecurityDeployer.java
U server/src/main/org/jboss/deployment/security/EjbPolicyConfigurationFacade.java
U server/src/main/org/jboss/web/deployers/WarSecurityDeployer.java
A server/src/main/org/jboss/web/deployers/SecurityActions.java
U server/src/etc/deployers/security-deployer-jboss-beans.xml
A testsuite/src/resources/web/xacml/requestAttrib/WEB-INF/jbossxacml-config.xml
A testsuite/src/resources/security/authorization/xacml-ejb/META-INF/jbossxacml-config.xml
U testsuite/imports/sections/security.xml
U testsuite/imports/sections/web.xml
U security/.classpath
A security/src/main/org/jboss/security/deployers
A security/src/main/org/jboss/security/deployers/XacmlConfigParsingDeployer.java
A security/src/main/org/jboss/security/deployers/JAXBElementParsingDeployer.java
A security/src/main/org/jboss/security/deployers/AclConfigParsingDeployer.java
U security/pom.xml
anil@localhost:~/Branch_5_x$
=============================
Showing posts with label svn. Show all posts
Showing posts with label svn. Show all posts
Thursday, March 19, 2009
Thursday, September 11, 2008
Recursively ignore "target" directory in svn
Suppose you are working with maven and svn tries to add target, what you can do to recursively ignore the target directory is:
svn propset -R svn:ignore target .
or you can do the following:
===================
$> svn ps svn:ignore 'target
target-eclipse
.settings
eclipse-target' .
===================
Remember that each ignorable entity should be on one line.
======================
anil@localhost:~/identity/identity-doc/trunk$ svn -R propset svn:ignore '.classpath
> .project
> .metadata
> target
> target-eclipse' .
property 'svn:ignore' set (recursively) on '.'
svn propset -R svn:ignore target .
or you can do the following:
===================
$> svn ps svn:ignore 'target
target-eclipse
.settings
eclipse-target' .
===================
Remember that each ignorable entity should be on one line.
======================
anil@localhost:~/identity/identity-doc/trunk$ svn -R propset svn:ignore '.classpath
> .project
> .metadata
> target
> target-eclipse' .
property 'svn:ignore' set (recursively) on '.'
Monday, April 28, 2008
SVN recover deleted files
Two steps
1) svn log --verbose
2) svn up -r 123457 file.txt
where 123457 is any revision that you want to get the file from.
References:
http://seamlesstrust.org/trustwiki/index.php/SVN_Recover_Deleted_Files
1) svn log --verbose
2) svn up -r 123457 file.txt
where 123457 is any revision that you want to get the file from.
References:
http://seamlesstrust.org/trustwiki/index.php/SVN_Recover_Deleted_Files
Wednesday, November 21, 2007
SVN undo a change
Assume that revision 92 contains the changes we are undoing.
In order to undo a commit that has been made to the repository we just tell SVN to apply the reverse of the changeset to our working copy in the current directory.
svn merge --revision 92:91 .
The output will show files being updated or deleted, we can now check those changes.
svn diff
And if all looks good we can commit our repaired files.
svn commit -m "removing changes from revision 92"
Good to go!
References:
http://seamlesstrust.org/trustwiki/index.php/SVN_Undo_Operation
http://www.jamescooke.info/blog_archive/how-to-undo-a-subversion-commit/
In order to undo a commit that has been made to the repository we just tell SVN to apply the reverse of the changeset to our working copy in the current directory.
svn merge --revision 92:91 .
The output will show files being updated or deleted, we can now check those changes.
svn diff
And if all looks good we can commit our repaired files.
svn commit -m "removing changes from revision 92"
Good to go!
References:
http://seamlesstrust.org/trustwiki/index.php/SVN_Undo_Operation
http://www.jamescooke.info/blog_archive/how-to-undo-a-subversion-commit/
Subscribe to:
Posts (Atom)