[ANN] ezbzr 0.2
Nathaniel McCallum
npmccallum at gentoo.org
Thu Jan 26 01:31:54 GMT 2006
On Wed, 2006-01-25 at 17:03 -0600, John A Meinel wrote:
> Nathaniel McCallum wrote:
> > On Wed, 2006-01-25 at 10:16 -0600, John Arbash Meinel wrote:
> >> Ivan Krstic wrote:
>
> ...
>
> >> I'm not sure how it should work for setting the local branch versus the
> >> global. Probably a flag such as "bzr whoami --local"
> >>
> >> I'm not a diffstat user, but if people find it useful, I think it would
> >> be okay to include it. Provided we get a couple tests for it :)
> >
> > I'm happy to do the work to integrate these into the bzr.dev. Could you
> > point me to some docs on creating the tests?
> >
> > Nathaniel
> >
>
> How do you use diffstat? Are you spawning a process, or is the code
> written in python?
> I'm thinking that if you can integrate Michael Ellerman's pure-python
> diffstat, then it becomes cross platform capable.
diffstatus (formerly diffstat) is most easily explained by its code:
class cmd_diffstatus(bzrlib.commands.Command):
"""Prints lots of status, including a diff"""
takes_args = ['file*']
takes_options = ['revision']
@bzrlib.commands.display_command
def run(self, revision=None, file_list=None):
# Do status
status = bzrlib.builtins.cmd_status()
status.run(file_list=file_list, revision=revision)
print os.linesep * 2
# Do diff
diff = bzrlib.builtins.cmd_diff()
diff.run(revision=revision, file_list=file_list)
Quick, dirty and all python.
Nathaniel
More information about the bazaar
mailing list