[MERGE] new command pack
Martin Pool
mbp at canonical.com
Thu Jul 12 10:37:19 BST 2007
Martin Pool has voted +1.
Status is now: Semi-approved
Comment:
+ def run(self, branch_or_repo='.'):
+ dir = bzrdir.BzrDir.open_containing(branch_or_repo)[0]
+ try:
+ branch = dir.open_branch()
+ repository = branch.repository
+ except errors.NotBranchError:
+ repository = dir.open_repository()
+ repository.pack()
Incidentally, maybe we should separate out a method for "open
repository, or repository of a branch"?
It might be nice to show the name of the repository being packed.
Maybe the default implementation should say that it's not going to do
any packing?
ok to merge regardless.
For details, see:
http://bundlebuggy.aaronbentley.com/request/%3C1184230558.12144.89.camel%40localhost.localdomain%3E
More information about the bazaar
mailing list