[MERGE] --undelete option for revert

Parth Malwankar parth.malwankar at gmail.com
Wed Feb 25 18:19:01 GMT 2009


Hello,

This branch[1] adds the "--undelete" option to the "bzr revert"
command that has been discussed on the list.

"--find" (discussed earlier on the list) is _not_ a part of this merge
request.

Below is the relevant section from the help:

  The --undelete option can be used to undelete a previously removed file.
  This option searches from new revision to old for the specified file(s)
  and reverts to the last committed revision in the specified range.
  The range of search may be specified using the standard revision spec
  (see: "help revisionspec") or the --limit option. The limit option
  searches the last N revision starting with the latest. If no range is
  specified, last 20 revisons are checked.

The implementation logic for this feature is to get the revision spec and
go over the revno range from latest to the oldest to find and revert the
queried file.

This is my first merge request. Please let me know in case I have missed
something.

Also, for my understanding, is it possible to do this by sending this
using the "propose merge" feature of launchpad or does it need to be a
mail to the list. Thanks.

~Parth

[1] https://code.launchpad.net/~parthm/bzr/revert_undelete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: revert_undelete.patch
Type: text/x-diff
Size: 27040 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090225/3b2554ed/attachment-0001.bin 


More information about the bazaar mailing list