Register now and start sharing your code snippets.
-->

ClearCase commands for listing changes (between builds, by me, etc)

Shell Script (Bash) posted 9 months ago by christian

   1  # List changes done by me
   2  cleartool lshistory -since 10-January-2007 -recurse -me
   3  
   4  # List view only files
   5  cleartool ls -view_only -recurse
   6  
   7  # Find changes between two releases
   8  cleartool find PATH -print -version "lbtype(NEW_BUILD_LABEL) && !version(OLD_BUILD_LABEL)"

Tagged clearcase, cleartool, diff, changes

Display the change log (revision history) for a Mercurial repository

Shell Script (Bash) posted about 1 year ago by christian

Use the following command to print a list of changes (revision history) for a Mercurial repository:

   1  $ hg log

The output looks like this:

   1  changeset:   35:5a17500addb5
   2  tag:         tip
   3  user:        christian@localhost
   4  date:        Fri Jun 29 23:33:59 2007 +0300
   5  summary:     Changed mongrel_cluster configuration
   6  
   7  changeset:   34:a73ee17923fe
   8  user:        christian@localhost
   9  date:        Fri Jun 29 23:28:36 2007 +0300
  10  summary:     Fixed bugs.

In the example there are two revisions 35 and 34. Use the following command to display the details for revision 34:

   1  $ hg log -p -r34

The output is a unified diff for the changeset and looks like this:

   1  changeset:   34:a73ee17923fe
   2  user:        christian@localhost
   3  date:        Fri Jun 29 23:28:36 2007 +0300
   4  summary:     Fixed bugs.
   5  
   6  diff -r 4c44552841af -r 4e57a76f51d9 lib/daemons/deleted_unused_tags.rb
   7  --- a/lib/daemons/deleted_unused_tags.rb        Sat Jun 23 23:58:38 2007 +0300
   8  +++ b/lib/daemons/deleted_unused_tags.rb        Sun Jun 24 00:03:43 2007 +0300
   9  @@ -11,10 +11,7 @@ end
  10   end

Tagged mercurial, diff