Useful commands

  • yum install subversion
    • Install SVN
  • svn co http://dev.zenoss.com/svn/tags/zenoss-2.4.5/Products
    • Check out a piece of code for local copy
  • find . | grep '.svn$' | xargs rm -rf
    diff -r -x "*.pyc" Products $ZENHOME/Products
    • Compare two versions of code
    • One a local copy, the other the official release copy that was checked out (above)
    • I think the find/remove is necessary to remove certain files so the dirs are ready for comparison
  • svn co http://dev.zenoss.com/svnint/trunk/customer/zenpacks/ZenPacks.zenoss.EventForwarder
    svn log ZenPacks.zenoss.EventForwarder/
    svn update -r6054 ZenPacks.zenoss.EventForwarder/
    • Checkout old version of code
      • Checkout directory of current zenpack
      • See changes or revisions of this directory from the past
      • Change your local version to be that of a former revision
  • zenpack --install=PACK_DIRECTORY -v10 --link
    • install as a zenpack, code in a directory
    • follows onto above example, where zenpack code was d/l’ed
 
technology/programming/svn.txt · Last modified: 03.04.2010 10:21 by nyeates1
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki