InfoHeap
Tech tutorials, tips, tools and more
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. svn – how to undo last commit
  2. Svn – how to edit log message for a committed change
  3. Svn – how to view older version of a file
  4. Svn – short diff without context
  5. How to install ViewVC for svn repository on Ubuntu Linux
  6. git – how to diff two branches
  7. Git – how to view diff for a given commit id
  8. AngularJS ng-change example
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 | 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

Copyright © 2023 InfoHeap.

Powered by WordPress