Skip to main content

Usefull SVN Commands




 svn info

svn info

svn copy

 
svn copy \
  http://subversion.xxxx.com/data/portal/product/myxxxx-portal/config/trunk \
  http://subversion.xxxx.com/data/portal/product/myxxxx-portal/config/branches/3.18.x \
  -r 75981 \
  -m "Creating 3.18.x config branch for the HE Frontend."

svn checkout

 
svn co \
  http://subversion.xxxx.com/data/portal/product/config/branches/3.18.x \
  fe-configs-3.18.x
cd fe-configs-3.18.x

svn remove

 
svn remove -m "DEV: HE Backend create Branch Comment:incorrect folder" \

svn diff

 
svn diff \
"http://subversion.xxxx.com/data/portal/product/he-backend/he-backend-web/branches/3.14.x/" \

svn up

 
svn up --ignore-externals

svn move

 
svn move -m \
"move congfig files to config folder" http://subversion.xxxx.com/data/portal/product/cpd-service/config/branches/1.2.x/bos03-staging-env/tomcat.properties \

svn import

 
svn import -m "Import config folder to the project" bos03-staging-env \

svn mkdir

 



delete file


svn delete -m "bug fix - remove incorectly located file" 
http://subversion.xxxx.com/data/portal//web/course-material-search.jsp
 

Using SVN log

Get last 10 changes

svn log -v -l10 http://subversion.xxxx.com/data/he-coresvcs/trunk/

svn log http://subversion.xxxx.com/data/portal/figs/install.ppe.properties

svn log -v http://subversion.xxxx.com/data/portal/components/he-backend-web/trunk

stop-on-copy
svn log for newly created branch, exclude data before copy
svn log "svnurl" --stop-on-copy
 svn log --stop-on-copy --quiet http://subversion.xxxx.com/data/portal/branches/1.9.x/


grep with or
svn log -v | grep -e 2015 -e 2014 -u5

Cat

svn cat http://subversion.xxxx.com/proxy/v7/CatalogServiceProxyV7.java@54186

Search in SVN repo

Search a file in svn repo
svn list -R http://subversion.xxxx.com/data/portal/ | grep server.xml

Diff

svn diff -r 74249:76301

compare with old version, get the old revision id by running svn log

svn diff -r81908  http://subversion.xxxx.com/data/cert-env/configs/install.cert.properties

svn diff \
"http://subversion.xxxx.com/data/portal/product/he-backend-web/branches/3.15.x/" \
"http://subversion.xxxx.com/data/portal/product/he-backend-web/trunk/"

Remove

svn rm -m "remove branch 3.16.x" http://subversion.xxxx.com/data/config/branches/3.16.x/
  

Svn File Restore

--get revison id
svn log -v http://subversion.xxxx.com/data/portal/product/mypearson-portal/config/branches

--use revision id minus 1 afer @
svn copy -m "restore branch 3.16.x" \
http://subversion.xxxx.com/data/portal/product/config/branches/3.16.x@76953 \
http://subversion.xxxx.com/data/portal/product/config/branches/3.16.x

svn externals

Setting
svn propget svn:externals -R http://subversion.xxxx.com/data/config/branches/3.16.x/

Remove property
svn propdel svn:externals /home/aravinda/Desktop/CatalogBranch_Fix_Issues/k2_support/config-1.14/1.14.x/bos03-staging-env/configs

CO
svn co --ignore-externals  http://subversion.xxxx.com/data/portal/shared-services/he-course-mgmt-service/config/trunk/

Branch - trunk -tag


trunk 3.20-SNAPSHOT
branch 3.20-SNAPSHOT -> trunk 3.21-SNAPSHOT
tag 3.20 -> branch 3.20.1-SNAPSHOT -> trunk 3.21-SNAPSHOT


Add new file

svn add bos03-staging-env/configs/bo3usptlxapp01.properties
svn ci . -m "Add new 0-1 node to the catalog ppe and prod trunk add new files"

  

svn merge using svnmerge.py tool


cd /workspaces/temp

svn co http://subversion.xxxx.com/data/he-coresvcs/branches/3.16.x/ he-coresvcs-3.16

cd /workspaces/temp/he-coresvcs-3.16

svnmerge.py avail -l

svnmerge.py merge -r 78630

svn ci . -F svnmerge-commit-message.txt



Block unwanted svn check ins

rm svnmerge-commit-message.txt
svnmerge.py block -r 67999,68000
svn
cat svnmerge-commit-message.txt

Revert

rm svnmerge-commit-message.txt
svn stat
svn revert . -R





ISSUE

            svn: GNOME Keyring is locked and we are non-interactive
FIX.......
            Edit the ~/.subversion/config with gedit or nano , and add the following
                        [auth]
                        password-stores =
 






Comments

Popular posts from this blog

Oracle Database 12c installation on Ubuntu 16.04

This article describes how to install Oracle 12c 64bit database on Ubuntu 16.04 64bit. Download software  Download the Oracle software from OTN or MOS or get a downloaded zip file. OTN: Oracle Database 12c Release 1 (12.1.0.2) Software (64-bit). edelivery: Oracle Database 12c Release 1 (12.1.0.2) Software (64-bit)   Unpacking  You should have following two files downloaded now. linuxamd64_12102_database_1of2.zip linuxamd64_12102_database_2of2.zip Unzip and copy them to \tmp\databases NOTE: you might have to merge two unzipped folders to create a single folder. Create new groups and users Open a terminal and execute following commands. you might need root permission. groupadd -g 502 oinstall groupadd -g 503 dba groupadd -g 504 oper groupadd -g 505 asmadmin Now create the oracle user useradd -u 502 -g oinstall -G dba,asmadmin,oper -s /bin/bash -m oracle You will prompt to set to password. set a momorable password and write it down. (mine is orac

DBCA : No Protocol specified

when trying to execute dbca from linux terminal got this error message. now execute the command xhost, you probably receiving No protocol specified xhost:  unable to open display ":0" issue is your user is not allowed to access the x server. You can use xhost to limit access for X server for security reasons. probably you are logged in as oracle user. switch back to default user and execute xhost again. you should see something like SI:localuser:nuwan solution is adding the oracle to access control list xhost +SI:localuser:oracle now go back to oracle user and try dbca it should be working

Java Head Dump Vs Thread Dump

JVM head dump is a snapshot of a JVM heap memory in a given time. So its simply a heap representation of JVM. That is the state of the objects. JVM thread dump is a snapshot of a JVM threads at a given time. So thats what were threads doing at any given time. This is the state of threads. This helps understanding such as locked threads, hanged threads and running threads. Head dump has more information of java class level information than a thread dump. For example Head dump is good to analyse JVM heap memory issues and OutOfMemoryError errors. JVM head dump is generated automatically when there is something like OutOfMemoryError has taken place.  Heap dump can be created manually by killing the process using kill -3 . Generating a heap dump is a intensive computing task, which will probably hang your jvm. so itsn't a methond to use offetenly. Heap can be analysed using tools such as eclipse memory analyser. Core dump is a os level memory usage of objects. It has more informaiton t