[PATCH] Calculate file sha1 in block [PATCH]

Martin Pool mbp at sourcefrog.net
Fri May 27 04:44:02 BST 2005


On 17 Apr 2005, Harri Salokorpi <hsalokor at ee.oulu.fi> wrote:
> Hello,
> 
> Fredrik Lundh wrote:
> >one thing that might work would be to put the commands into separate
> >modules (e.g. bzrlib/commands/init.py), and only import the command
> >implementations as needed. 
> 
> Some savings can be obtained just by trimming and lazifying the 
> command.py imports. Some imports seemed unnecessary, so I removed them 
> and tested the difference (patch attached). In particular, I moved least 
> used imports from header to code (difflib).

Thanks, updated and merged.
-- 
Martin




More information about the bazaar mailing list