At http://people.ubuntu.com/~robertc/baz2.0/plugins/repodetails/trunk

------------------------------------------------------------
revno: 3
revision-id: [EMAIL PROTECTED]
parent: [EMAIL PROTECTED]
committer: Robert Collins <[EMAIL PROTECTED]>
branch nick: trunk
timestamp: Fri 2008-10-17 14:19:30 +1100
message:
  Optional path
modified:
  __init__.py                    __init__.py-20081017014933-iriuw53viune2txe-2
=== modified file '__init__.py'
--- a/__init__.py       2008-10-17 03:11:36 +0000
+++ b/__init__.py       2008-10-17 03:19:30 +0000
@@ -198,6 +198,8 @@
     or may break... who knows.
     """
 
+    takes_args = ["path?"]
+
     def _format_object(self, objectstats, total):
         # Mangle the percentages for very small repos to avoid divide by zero.
         raw_percent = (objectstats.raw_size + 1)*100/(total.raw_size + 1)
@@ -206,8 +208,8 @@
             raw_percent, objectstats.compressed_size/1024, compressed_percent,
             objectstats.objects)
 
-    def run(self):
-        repo = repository.Repository.open(".")
+    def run(self, path="."):
+        repo = repository.Repository.open(path)
         stats = gather_stats(repo)
         self.outf.write("Commits: %d\n" % stats.revision_count)
         self.outf.write("                    Raw    %  Compressed    %  
Objects\n")


-- 
bazaar-commits mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/bazaar-commits

Reply via email to