[ANN] ezbzr 0.2

Jan Hudec bulb at ucw.cz
Thu Jan 26 08:00:30 GMT 2006


On Wed, Jan 25, 2006 at 20:31:54 -0500, Nathaniel McCallum wrote:
> 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.

... and has nothing to do with diffstat whatsoever...

I would actually like to see this integrated as part of diff commands
itself. It would be similar to what Arch does - print a summary followed
by the actual diff -- and perhaps it could be optionally accompanied by
diffstat.

-- 
						 Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060126/4cb7f73b/attachment.pgp 


More information about the bazaar mailing list