[ANN] ezbzr 0.2
John A Meinel
john at arbash-meinel.com
Thu Jan 26 16:14:33 GMT 2006
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.
>
> Nathaniel
>
>
To me, this doesn't seem like a command all its own. It seems more of a
"diff --with-summary" (perhaps on by default for a future
--without-summary/--no-summary)
Or a "status --verbose" sort of a thing.
It isn't a lot of work right now to type "bzr st<enter>bzr di"
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060126/5675c689/attachment.pgp
More information about the bazaar
mailing list