File: hg-rollback.1

package info (click to toggle)
mercurial 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,080 kB
  • sloc: python: 208,589; ansic: 56,460; tcl: 3,715; sh: 1,839; lisp: 1,483; cpp: 864; makefile: 769; javascript: 649; xml: 36
file content (78 lines) | stat: -rw-r--r-- 2,068 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
.TH HG ROLLBACK  "" "" ""
.SH NAME
hg rollback \- roll back the last transaction (DANGEROUS) (DEPRECATED)
.\" Man page generated from reStructuredText.
.
.SH SYNOPSIS
.sp
.nf
.ft C
hg rollback
.ft P
.fi
.SH DESCRIPTION
.sp
Please use \%\fBhg commit \-\-amend\fP\: instead of rollback to correct
mistakes in the last commit.
.sp
This command should be used with care. There is only one level of
rollback, and there is no way to undo a rollback. It will also
restore the dirstate at the time of the last transaction, losing
any dirstate changes since that time. This command does not alter
the working directory.
.sp
Transactions are used to encapsulate the effects of all commands
that create new changesets or propagate existing changesets into a
repository.
.sp
For example, the following commands are transactional, and their
effects can be rolled back:
.INDENT 0.0
.IP \(bu 2
.
commit
.IP \(bu 2
.
import
.IP \(bu 2
.
pull
.IP \(bu 2
.
push (with this repository as the destination)
.IP \(bu 2
.
unbundle
.UNINDENT
.sp
To avoid permanent data loss, rollback will refuse to rollback a
commit transaction if it isn\(aqt checked out. Use \-\-force to
override this protection.
.sp
The rollback command can be entirely disabled by setting the
\fBui.rollback\fP configuration setting to false. If you\(aqre here
because you want to use rollback and it\(aqs disabled, you can
re\-enable the command by setting \fBui.rollback\fP to true.
.sp
This command is not intended for use on public repositories. Once
changes are visible for pull by other users, rolling a transaction
back locally is ineffective (someone else may already have pulled
the changes). Furthermore, a race is possible with readers of the
repository; for example an in\-progress pull from the repository
may fail if a rollback is performed.
.sp
Returns 0 on success, 1 if no rollback data is available.
.SH OPTIONS
.INDENT 0.0
.TP
.B \-n,  \-\-dry\-run
.
do not perform actions, just print output
.TP
.B \-f,  \-\-force
.
ignore safety measures
.UNINDENT
.\" Generated by docutils manpage writer.
.\" 
.