Debian Codegraph @

doc/man/hg-unshelve.1

raw
1 .TH HG UNSHELVE "" "" ""
2 .SH NAME
3 hg unshelve \- restore a shelved change to the working directory
4 .\" Man page generated from reStructuredText.
5 .
6 .SH SYNOPSIS
7 .sp
8 .nf
9 .ft C
10 hg unshelve [OPTION]... [[\-n] SHELVED]
11 .ft P
12 .fi
13 .SH DESCRIPTION
14 .sp
15 This command accepts an optional name of a shelved change to
16 restore. If none is given, the most recent shelved change is used.
17 .sp
18 If a shelved change is applied successfully, the bundle that
19 contains the shelved changes is moved to a backup location
20 (.hg/shelve\-backup).
21 .sp
22 Since you can restore a shelved change on top of an arbitrary
23 commit, it is possible that unshelving will result in a conflict
24 between your changes and the commits you are unshelving onto. If
25 this occurs, you must resolve the conflict, then use
26 \fB\-\-continue\fP to complete the unshelve operation. (The bundle
27 will not be moved until you successfully complete the unshelve.)
28 .sp
29 (Alternatively, you can use \fB\-\-abort\fP to abandon an unshelve
30 that causes a conflict. This reverts the unshelved changes, and
31 leaves the bundle in place.)
32 .sp
33 If bare shelved change (without interactive, include and exclude
34 option) was done on newly created branch it would restore branch
35 information to the working directory.
36 .sp
37 After a successful unshelve, the shelved changes are stored in a
38 backup directory. Only the N most recent backups are kept. N
39 defaults to 10 but can be overridden using the \fBshelve.maxbackups\fP
40 configuration option.
41 .sp
42 Timestamp in seconds is used to decide order of backups. More
43 than \fBmaxbackups\fP backups are kept, if same timestamp
44 prevents from deciding exact order of them, for safety.
45 .sp
46 Selected changes can be unshelved with \fB\-\-interactive\fP flag.
47 The working directory is updated with the selected changes, and
48 only the unselected changes remain shelved.
49 Note: The whole shelve is applied to working directory first before
50 running interactively. So, this will bring up all the conflicts between
51 working directory and the shelve, irrespective of which changes will be
52 unshelved.
53 .SH OPTIONS
54 .INDENT 0.0
55 .TP
56 .B \-a, \-\-abort
57 .
58 abort an incomplete unshelve operation
59 .TP
60 .B \-c, \-\-continue
61 .
62 continue an incomplete unshelve operation
63 .TP
64 .B \-i, \-\-interactive
65 .
66 use interactive mode (EXPERIMENTAL)
67 .TP
68 .B \-k, \-\-keep
69 .
70 keep shelve after unshelving
71 .TP
72 .BI \-n, \-\-name \ <NAME>
73 .
74 restore shelved change with given name
75 .TP
76 .BI \-t, \-\-tool \ <VALUE>
77 .
78 specify merge tool
79 .TP
80 .BI \-\-date \ <DATE>
81 .
82 set date for temporary commits (DEPRECATED)
83 .UNINDENT
84 .\" Generated by docutils manpage writer.
85 .\"
86 .