InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Svn tutorials

  • Diff last committed change
  • Edit log message for a committed revision
  • Make file executable on Linux
  • Recover svn lost password on Linux
  • Short diff without context
  • Svn log of all files in a directory
  • Svn log of entire repository
  • Undo last commit
  • View older version of a file
 
  • Home
  • > Tutorials
  • > Svn

Svn – how to diff last committed change

By admin on Jan 12, 2016

To see the diff of last committed change follow these steps:

  1. Find last revision id
    $ svn update
    $ svn log -l 1
    r4546 | user1 | 2016-01-12 15:20:20 +0000 (Tue, 12 Jan 2016) | 2 lines
    some comment
    
  2. Now run the diff command with -c change (e.g. for revision r4546)

    $ svn diff -c r4546
    ## or 
    $ svn diff --diff-cmd=diff -x -U0 -c r4546
    

    Note that -c ARG is equivalent to -r ARG-1:ARG

Suggested posts:

  1. WordPress – customize category and tag links
  2. How to disable sleep during android usb debugging
  3. WordPress – write custom php log to separate file
  4. Vim – highlight and move to matching bracket
  5. Debug javascript using node-inspector, node-debug, nodemon and Chrome
  6. AngularJS format date using date filter
  7. wget handy commands
  8. jQuery – how to get version info
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Linux, Linux/Unix Command Line, Svn, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress