Debian Codegraph @

doc/man/hg-shelve.1

raw
1 .TH HG SHELVE "" "" ""
2 .SH NAME
3 hg shelve \- save and set aside changes from the working directory
4 .\" Man page generated from reStructuredText.
5 .
6 .SH SYNOPSIS
7 .sp
8 .nf
9 .ft C
10 hg shelve [OPTION]... [FILE]...
11 .ft P
12 .fi
13 .SH DESCRIPTION
14 .sp
15 Shelving takes files that "hg status" reports as not clean, saves
16 the modifications to a bundle (a shelved change), and reverts the
17 files so that their state in the working directory becomes clean.
18 .sp
19 To restore these changes to the working directory, using "hg
20 unshelve"; this will work even if you switch to a different
21 commit.
22 .sp
23 When no files are specified, "hg shelve" saves all not\-clean
24 files. If specific files or directories are named, only changes to
25 those files are shelved.
26 .sp
27 In bare shelve (when no files are specified, without interactive,
28 include and exclude option), shelving remembers information if the
29 working directory was on newly created branch, in other words working
30 directory was on different branch than its first parent. In this
31 situation unshelving restores branch information to the working directory.
32 .sp
33 Each shelved change has a name that makes it easier to find later.
34 The name of a shelved change defaults to being based on the active
35 bookmark, or if there is no active bookmark, the current named
36 branch. To specify a different name, use \fB\-\-name\fP.
37 .sp
38 To see a list of existing shelved changes, use the \fB\-\-list\fP
39 option. For each shelved change, this will print its name, age,
40 and description; use \fB\-\-patch\fP or \fB\-\-stat\fP for more details.
41 .sp
42 To delete specific shelved changes, use \fB\-\-delete\fP. To delete
43 all shelved changes, use \fB\-\-cleanup\fP.
44 .SH OPTIONS
45 .INDENT 0.0
46 .TP
47 .B \-A, \-\-addremove
48 .
49 mark new/missing files as added/removed before shelving
50 .TP
51 .B \-u, \-\-unknown
52 .
53 store unknown files in the shelve
54 .TP
55 .B \-\-cleanup
56 .
57 delete all shelved changes
58 .TP
59 .BI \-\-date \ <DATE>
60 .
61 shelve with the specified commit date
62 .TP
63 .B \-d, \-\-delete
64 .
65 delete the named shelved change(s)
66 .TP
67 .B \-e, \-\-edit
68 .
69 invoke editor on commit messages
70 .TP
71 .B \-k, \-\-keep
72 .
73 shelve, but keep changes in the working directory
74 .TP
75 .B \-l, \-\-list
76 .
77 list current shelves
78 .TP
79 .BI \-m, \-\-message \ <TEXT>
80 .
81 use text as shelve message
82 .TP
83 .BI \-n, \-\-name \ <NAME>
84 .
85 use the given name for the shelved commit
86 .TP
87 .B \-p, \-\-patch
88 .
89 output patches for changes (provide the names of the shelved changes as positional arguments)
90 .TP
91 .B \-i, \-\-interactive
92 .
93 interactive mode
94 .TP
95 .B \-\-stat
96 .
97 output diffstat\-style summary of changes (provide the names of the shelved changes as positional arguments)
98 .TP
99 .BI \-I, \-\-include \ <PATTERN[+]>
100 .
101 include names matching the given patterns
102 .TP
103 .BI \-X, \-\-exclude \ <PATTERN[+]>
104 .
105 exclude names matching the given patterns
106 .UNINDENT
107 .sp
108 [+] marked option can be specified multiple times
109 .\" Generated by docutils manpage writer.
110 .\"
111 .