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

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

From: Kobayashi Noritada <nori1_at_dolphin.c.u-tokyo.ac.jp>
Date: 2005-10-23 17:54:00 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.
>
> The codes are no problem. But I have a request. Could you
> add comments that the two subcommands ignore REV and TXN
> argument?

Thank you for reviewing my code, kou.
Yeah, it should have comments as you suggest.
I fixed the patch.

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 the two subcommands and also a note that
  those subcommands ignore revision/transaction specified.
]]]

Index: tools/examples/svnlook.rb
===================================================================
--- tools/examples/svnlook.rb (revision 16943)
+++ 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
@@ -462,6 +472,10 @@
     " 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.",
+ "",
+ "For `uuid' and `youngest', REV and TXN are ignored.",
   ]
   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 17:54:48 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.