undelete - Undelete to last known version of files/dirs

Version 0.2.0
Branch lp:bzr-undelete
Home page https://launchpad.net/bzr-undelete
Owner parthm
GNU/Linux Yes
Windows Yes
Mac OS X Yes

Undelete the file(s) deleted using ‘bzr rm’

undelete

Purpose

Undelete file(s) deleted using ‘bzr rm’

Usage

bzr undelete [FILE...]

Options

-v, --verbose Display more information.
-h, --help Show help message.
-q, --quiet Only display errors and warnings.
-l N, --limit=N
 Limit the search to the first N revisions. (default:20)
--usage Show usage message and options.
--find=ARG List the deleted file(s) with name matching regular expression
-r ARG, --revision=ARG
 See “help revisionspec” for details.

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 ‘–limit’ (default: 20). Note that –limit and –revision are mutually exclusive. For revision filtering, the older revision should be specified on the left. For example:

-r -5.. will search backwards from the current revision to
(current - 5) revision for file to undelete.
-r 3..8 will search from revno:8 to revno:3 to undelete the
latest known version of the specified file.

See also

revisionspec

Table Of Contents

Previous topic

rewrite - Rewrite history by replaying patches

Next topic

builder - Construct a branch from a recipe

This Page