bzr-undelete

Parth Malwankar parth.malwankar at gmail.com
Tue Feb 24 03:19:38 GMT 2009


Copying the list this time .. reply vs reply-all :)

On Tue, Feb 24, 2009 at 8:48 AM, Parth Malwankar
<parth.malwankar at gmail.com> wrote:
> On Mon, Feb 23, 2009 at 8:20 PM, Colin D Bennett <colin at gibibit.com> wrote:
>> On Fri, 20 Feb 2009 09:56:39 +0530
>> Parth Malwankar <parth.malwankar at gmail.com> wrote:
>>
>>> Options:
>>>   --last=ARG     Search for last N revisions. (default: 20)
>>>   -v, --verbose  Display more information.
>>>   -q, --quiet    Only display errors and warnings.
>>>   -h, --help     Show help message.
>>>
>
>
>>
>> In addition to the --last=ARG option, could it also support a
>> revisionspec range so that things like date ranges could be used?  For
>> instance,
>>
>>  bzr revert --undelete src/foobar.c -r date:2009-01-15..
>>
>> Then if the user has some idea when the file last existed, he or she
>> can specify that instead of guessing or looking up (if the user has to
>> look up the last revision it was in, then the undelete command
>> isn't pulling its weight) the number of revisions to scan.
>>
>> (The --last=ARG could even be eliminated in favor of standard revision
>> ranges then, like "-r -20.." instead of "--last=20", but keeping
>> --last as an alternative would be fine too.)
>>
>> Just an idea.
>>
>> Regards,
>> Colin
>>
>
> Sounds like a good way to do it as the user need not learn another
> option. I will look at adding this to the plugin over the next few days.
>
> You are right, with -r support in place we probably don't need --last. I will
> get rid of that if no one objects and keep a default of -20.. so that -r
> is optional.
>
> Thanks for the suggestion.
>
> Parth
>



More information about the bazaar mailing list