Debian Codegraph @

doc/man/hg-push.1

raw
1 .TH HG PUSH "" "" ""
2 .SH NAME
3 hg push \- push changes to the specified destination
4 .\" Man page generated from reStructuredText.
5 .
6 .SH SYNOPSIS
7 .sp
8 .nf
9 .ft C
10 hg push [\-f] [\-r REV]... [\-e CMD] [\-\-remotecmd CMD] [DEST]...
11 .ft P
12 .fi
13 .SH DESCRIPTION
14 .sp
15 Push changesets from the local repository to the specified
16 destination.
17 .sp
18 This operation is symmetrical to pull: it is identical to a pull
19 in the destination repository from the current one.
20 .sp
21 By default, push will not allow creation of new heads at the
22 destination, since multiple heads would make it unclear which head
23 to use. In this situation, it is recommended to pull and merge
24 before pushing.
25 .sp
26 Use \-\-new\-branch if you want to allow push to create a new named
27 branch that is not present at the destination. This allows you to
28 only create a new branch without forcing other changes.
29 .IP Note
30 .
31 Extra care should be taken with the \-f/\-\-force option,
32 which will push all new heads on all branches, an action which will
33 almost always cause confusion for collaborators.
34 .RE
35 .sp
36 If \-r/\-\-rev is used, the specified revision and all its ancestors
37 will be pushed to the remote repository.
38 .sp
39 If \-B/\-\-bookmark is used, the specified bookmarked revision, its
40 ancestors, and the bookmark will be pushed to the remote
41 repository. Specifying \fB.\fP is equivalent to specifying the active
42 bookmark\(aqs name. Use the \-\-all\-bookmarks option for pushing all
43 current bookmarks.
44 .sp
45 Please see \%\fBhg help urls\fP\: for important details about \fBssh://\fP
46 URLs. If DESTINATION is omitted, a default path will be used.
47 .sp
48 When passed multiple destinations, push will process them one after the
49 other, but stop should an error occur.
50 .sp
51 The \-\-pushvars option sends strings to the server that become
52 environment variables prepended with \fBHG_USERVAR_\fP. For example,
53 \fB\-\-pushvars ENABLE_FEATURE=true\fP, provides the server side hooks with
54 \fBHG_USERVAR_ENABLE_FEATURE=true\fP as part of their environment.
55 .sp
56 pushvars can provide for user\-overridable hooks as well as set debug
57 levels. One example is having a hook that blocks commits containing
58 conflict markers, but enables the user to override the hook if the file
59 is using conflict markers for testing purposes or the file format has
60 strings that look like conflict markers.
61 .sp
62 By default, servers will ignore \fI\-\-pushvars\fP. To enable it add the
63 following to your configuration file:
64 .sp
65 .nf
66 .ft C
67 [push]
68 pushvars.server = true
69 .ft P
70 .fi
71 .sp
72 Returns 0 if push was successful, 1 if nothing to push.
73 .SH OPTIONS
74 .INDENT 0.0
75 .TP
76 .B \-f, \-\-force
77 .
78 force push
79 .TP
80 .BI \-r, \-\-rev \ <REV[+]>
81 .
82 a changeset intended to be included in the destination
83 .TP
84 .BI \-B, \-\-bookmark \ <BOOKMARK[+]>
85 .
86 bookmark to push
87 .TP
88 .B \-\-all\-bookmarks
89 .
90 push all bookmarks (EXPERIMENTAL)
91 .TP
92 .BI \-b, \-\-branch \ <BRANCH[+]>
93 .
94 a specific branch you would like to push
95 .TP
96 .B \-\-new\-branch
97 .
98 allow pushing a new branch
99 .TP
100 .BI \-\-pushvars \ <VALUE[+]>
101 .
102 variables that can be sent to server (ADVANCED)
103 .TP
104 .B \-\-publish
105 .
106 push the changeset as public (EXPERIMENTAL)
107 .TP
108 .BI \-e, \-\-ssh \ <CMD>
109 .
110 specify ssh command to use
111 .TP
112 .BI \-\-remotecmd \ <CMD>
113 .
114 specify hg command to run on the remote side
115 .TP
116 .B \-\-insecure
117 .
118 do not verify server certificate (ignoring web.cacerts config)
119 .UNINDENT
120 .sp
121 [+] marked option can be specified multiple times
122 .\" Generated by docutils manpage writer.
123 .\"
124 .