Rev 6514: (jelmer) Tweak the help string for 'bzr revert'. (Jelmer Vernooij) in file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/%2Btrunk/
Patch Queue Manager
pqm at pqm.ubuntu.com
Fri Mar 30 01:08:48 UTC 2012
At file:///srv/pqm.bazaar-vcs.org/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 6514 [merge]
revision-id: pqm at pqm.ubuntu.com-20120330010848-zogzer4l3exctrbk
parent: pqm at pqm.ubuntu.com-20120329122752-d05to7wdet9w3886
parent: jelmer at samba.org-20120325133653-0wa15g0ezfar1zi6
committer: Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2012-03-30 01:08:48 +0000
message:
(jelmer) Tweak the help string for 'bzr revert'. (Jelmer Vernooij)
modified:
bzrlib/builtins.py builtins.py-20050830033751-fc01482b9ca23183
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2012-03-15 02:42:48 +0000
+++ b/bzrlib/builtins.py 2012-03-25 13:36:53 +0000
@@ -4728,21 +4728,28 @@
class cmd_revert(Command):
- __doc__ = """Revert files to a previous revision.
+ __doc__ = """\
+ Set files in the working tree back to the contents of a previous revision.
Giving a list of files will revert only those files. Otherwise, all files
will be reverted. If the revision is not specified with '--revision', the
- last committed revision is used.
+ working tree basis revision is used. A revert operation affects only the
+ working tree, not any revision history like the branch and repository or
+ the working tree basis revision.
To remove only some changes, without reverting to a prior version, use
merge instead. For example, "merge . -r -2..-3" (don't forget the ".")
will remove the changes introduced by the second last commit (-2), without
affecting the changes introduced by the last commit (-1). To remove
certain changes on a hunk-by-hunk basis, see the shelve command.
+ To update the branch to a specific revision or the latest revision and
+ update the working tree accordingly while preserving local changes, see the
+ update command.
- By default, any files that have been manually changed will be backed up
- first. (Files changed only by merge are not backed up.) Backup files have
- '.~#~' appended to their name, where # is a number.
+ Uncommitted changes to files that are reverted will be discarded.
+ Howver, by default, any files that have been manually changed will be
+ backed up first. (Files changed only by merge are not backed up.) Backup
+ files have '.~#~' appended to their name, where # is a number.
When you provide files, you can use their current pathname or the pathname
from the target revision. So you can use revert to "undelete" a file by
More information about the bazaar-commits
mailing list