[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Add two small subcommands to svnlook.rb.

From: Kobayashi Noritada <nori1_at_dolphin.c.u-tokyo.ac.jp>
Date: 2005-10-23 11:17:25 CEST

Hi,

I added implementation of two subcommands, 'uuid' and 'youngest',
to svnlook.rb.
This patch is a very very easy stuff. :-)
Please check it.

Regards,

-nori

Log:
[[[
Add two subcommands to tools/examples/svnlook.rb.

* tools/examples/svnlook.rb
  (SvnLook#cmd_uuid,
   SvnLook#cmd_youngest): New methods for two subcommands.
  (usage): Add description for two subcommands added.
]]]

Index: tools/examples/svnlook.rb
===================================================================
--- tools/examples/svnlook.rb (revision 16925)
+++ tools/examples/svnlook.rb (working copy)
@@ -143,6 +143,16 @@
     print_tree(Editor, 0)
   end
 
+ # Output the repository's UUID.
+ def cmd_uuid
+ puts @fs.uuid
+ end
+
+ # Output the repository's youngest revision.
+ def cmd_youngest
+ puts @fs.youngest_rev
+ end
+
   # Return a property of the specified revision or transaction.
   # Name: the ID of the property you want to retrieve.
   # E.g. Svn::Core::PROP_REVISION_LOG
@@ -502,6 +512,8 @@
     " info: print the author, data, log_size, and log message.",
     " log: print log message.",
     " tree: print the tree.",
+ " uuid: print the repository's UUID.",
+ " youngest: print the youngest revision number.",
   ]
   puts(messages.join("\n"))
   exit(1)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Oct 23 11:18:12 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.