monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] mtn rename --guess


From: Stephen Leake
Subject: Re: [Monotone-devel] mtn rename --guess
Date: Sun, 22 Feb 2009 08:49:46 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Matthew Nicholson <address@hidden> writes:

> Timothy Brownawell wrote:
>> On Mon, 2009-01-26 at 22:29 -0600, Matthew Nicholson wrote:
>>> Greetings,
>>>
>>> My rename --guess work from the mini summit is ready for testing
>>> and review.  It can be found in the net.venge.monotone.rename-guess
>>> branch.
>>>
>>> The rename --guess command attempts to match files in the mtn ls
>>> missing list with files in the mtn ls unknown list. Currently the
>>> command will detect renames of identical files and renames of
>>> directories composed of identical files.  Future improvements may
>>> include, renames of files and directories with partial content
>>> changes.
>>
>>
>> #
>> # patch "cmd_ws_commit.cc"
>> #  from [f19eb71e76506b5ac8a706f610e6a34b595266a1]
>> #    to [b3bd3a32ee59af9edb595e9c999e937390b9965b]
>> # # patch "options_list.hh"
>> #  from [05705dd75c2e3556f4bac136b13c802d85827e0d]
>> #    to [54a563f0f12bd6db64856d316d0c7a13cd0125e4]
>> # # patch "work.cc"
>> #  from [b005a944d5e5ebcbfed43ac742871eba7d5e7ad0]
>> #    to [4b549d6bcb26d3e0632b08d16871195016a66e17]
>> # # patch "work.hh"
>> #  from [cd117c8295b2bdf48db35e92aaf29842c27a1b7f]
>> #    to [066d38ca737363f32bfe4b4811689d09ee5066d8]
>> #
>>
>> Should have at least one file like tests/<something>/__driver__.lua .
>
> Yeah, there are several cases I have thought of to test, just haven't
> gotten around to writing the tests.

I find it helps a lot to write at least some tests first, before
starting to work on the code. This accomplishes several things:

o It helps define what the code changes need to do.

o It gives concrete examples when discussing the changes with others.

o It gives you a defined goal; you know when you are "done".

o The tests get written.

-- 
-- Stephe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]