bzr-undelete

Colin D Bennett colin at gibibit.com
Mon Feb 23 14:50:29 GMT 2009


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.
> 
> Description:
>   This commands reverts to the last known version of a
>   previously deleted file. It steps back in revisions
>   starting from previous till the specified '--last'
>   (default: 20).
> 
> From:     plugin "undelete"
> See also: plugins/undelete

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090223/f7285b23/attachment-0001.pgp 


More information about the bazaar mailing list