##// END OF EJS Templates
addremove: do not deprecate....
Vadim Gelfer -
r2955:9d1c3529 default
parent child Browse files
Show More
@@ -710,17 +710,11 def add(ui, repo, *pats, **opts):
710 710 def addremove(ui, repo, *pats, **opts):
711 711 """add all new files, delete all missing files (DEPRECATED)
712 712
713 (DEPRECATED)
714 713 Add all new files and remove all missing files from the repository.
715 714
716 715 New files are ignored if they match any of the patterns in .hgignore. As
717 716 with add, these changes take effect at the next commit.
718
719 This command is now deprecated and will be removed in a future
720 release. Please use add and remove --after instead.
721 717 """
722 ui.warn(_('(the addremove command is deprecated; use add and remove '
723 '--after instead)\n'))
724 718 return addremove_lock(ui, repo, pats, opts)
725 719
726 720 def addremove_lock(ui, repo, pats, opts, wlock=None):
@@ -2815,7 +2809,7 table = {
2815 2809 ('X', 'exclude', [], _('exclude names matching the given patterns')),
2816 2810 ('n', 'dry-run', None, _('do not perform actions, just print output'))],
2817 2811 _('hg add [OPTION]... [FILE]...')),
2818 "debugaddremove|addremove":
2812 "addremove":
2819 2813 (addremove,
2820 2814 [('I', 'include', [], _('include names matching the given patterns')),
2821 2815 ('X', 'exclude', [], _('exclude names matching the given patterns')),
@@ -1,9 +1,7
1 (the addremove command is deprecated; use add and remove --after instead)
2 1 adding dir/bar
3 2 adding foo
4 3 dir/bar
5 4 foo
6 (the addremove command is deprecated; use add and remove --after instead)
7 5 adding dir/bar_2
8 6 adding foo_2
9 7 dir/bar_2
@@ -1,8 +1,5
1 (the addremove command is deprecated; use add and remove --after instead)
2 1 adding foo
3 (the addremove command is deprecated; use add and remove --after instead)
4 2 adding bar
5 (the addremove command is deprecated; use add and remove --after instead)
6 3 adding baz/bletch
7 4 test-archive-TIP/.hg_archival.txt
8 5 test-archive-TIP/bar
@@ -114,92 +114,94 Mercurial Distributed SCM
114 114
115 115 list of commands (use "hg help -v" to show aliases and global options):
116 116
117 add add the specified files on the next commit
118 annotate show changeset information per file line
119 archive create unversioned archive of a repository revision
120 backout reverse effect of earlier changeset
121 bundle create a changegroup file
122 cat output the latest or given revisions of files
123 clone make a copy of an existing repository
124 commit commit the specified files or all outstanding changes
125 copy mark files as copied for the next commit
126 diff diff repository (or selected files)
127 export dump the header and diffs for one or more changesets
128 grep search for a pattern in specified files and revisions
129 heads show current repository heads
130 help show help for a command, extension, or list of commands
131 identify print information about the working copy
132 import import an ordered set of patches
133 incoming show new changesets found in source
134 init create a new repository in the given directory
135 locate locate files matching specific patterns
136 log show revision history of entire repository or files
137 manifest output the latest or given revision of the project manifest
138 merge Merge working directory with another revision
139 outgoing show changesets not found in destination
140 parents show the parents of the working dir or revision
141 paths show definition of symbolic path names
142 pull pull changes from the specified source
143 push push changes to the specified destination
144 recover roll back an interrupted transaction
145 remove remove the specified files on the next commit
146 rename rename files; equivalent of copy + remove
147 revert revert files or dirs to their states as of some revision
148 rollback roll back the last transaction in this repository
149 root print the root (top) of the current working dir
150 serve export the repository via HTTP
151 status show changed files in the working directory
152 tag add a tag for the current tip or a given revision
153 tags list repository tags
154 tip show the tip revision
155 unbundle apply a changegroup file
156 update update or merge working directory
157 verify verify the integrity of the repository
158 version output version and copyright information
117 add add the specified files on the next commit
118 addremove add all new files, delete all missing files (DEPRECATED)
119 annotate show changeset information per file line
120 archive create unversioned archive of a repository revision
121 backout reverse effect of earlier changeset
122 bundle create a changegroup file
123 cat output the latest or given revisions of files
124 clone make a copy of an existing repository
125 commit commit the specified files or all outstanding changes
126 copy mark files as copied for the next commit
127 diff diff repository (or selected files)
128 export dump the header and diffs for one or more changesets
129 grep search for a pattern in specified files and revisions
130 heads show current repository heads
131 help show help for a command, extension, or list of commands
132 identify print information about the working copy
133 import import an ordered set of patches
134 incoming show new changesets found in source
135 init create a new repository in the given directory
136 locate locate files matching specific patterns
137 log show revision history of entire repository or files
138 manifest output the latest or given revision of the project manifest
139 merge Merge working directory with another revision
140 outgoing show changesets not found in destination
141 parents show the parents of the working dir or revision
142 paths show definition of symbolic path names
143 pull pull changes from the specified source
144 push push changes to the specified destination
145 recover roll back an interrupted transaction
146 remove remove the specified files on the next commit
147 rename rename files; equivalent of copy + remove
148 revert revert files or dirs to their states as of some revision
149 rollback roll back the last transaction in this repository
150 root print the root (top) of the current working dir
151 serve export the repository via HTTP
152 status show changed files in the working directory
153 tag add a tag for the current tip or a given revision
154 tags list repository tags
155 tip show the tip revision
156 unbundle apply a changegroup file
157 update update or merge working directory
158 verify verify the integrity of the repository
159 version output version and copyright information
159 160 Mercurial Distributed SCM
160 161
161 162 list of commands (use "hg help -v" to show aliases and global options):
162 163
163 add add the specified files on the next commit
164 annotate show changeset information per file line
165 archive create unversioned archive of a repository revision
166 backout reverse effect of earlier changeset
167 bundle create a changegroup file
168 cat output the latest or given revisions of files
169 clone make a copy of an existing repository
170 commit commit the specified files or all outstanding changes
171 copy mark files as copied for the next commit
172 diff diff repository (or selected files)
173 export dump the header and diffs for one or more changesets
174 grep search for a pattern in specified files and revisions
175 heads show current repository heads
176 help show help for a command, extension, or list of commands
177 identify print information about the working copy
178 import import an ordered set of patches
179 incoming show new changesets found in source
180 init create a new repository in the given directory
181 locate locate files matching specific patterns
182 log show revision history of entire repository or files
183 manifest output the latest or given revision of the project manifest
184 merge Merge working directory with another revision
185 outgoing show changesets not found in destination
186 parents show the parents of the working dir or revision
187 paths show definition of symbolic path names
188 pull pull changes from the specified source
189 push push changes to the specified destination
190 recover roll back an interrupted transaction
191 remove remove the specified files on the next commit
192 rename rename files; equivalent of copy + remove
193 revert revert files or dirs to their states as of some revision
194 rollback roll back the last transaction in this repository
195 root print the root (top) of the current working dir
196 serve export the repository via HTTP
197 status show changed files in the working directory
198 tag add a tag for the current tip or a given revision
199 tags list repository tags
200 tip show the tip revision
201 unbundle apply a changegroup file
202 update update or merge working directory
203 verify verify the integrity of the repository
204 version output version and copyright information
164 add add the specified files on the next commit
165 addremove add all new files, delete all missing files (DEPRECATED)
166 annotate show changeset information per file line
167 archive create unversioned archive of a repository revision
168 backout reverse effect of earlier changeset
169 bundle create a changegroup file
170 cat output the latest or given revisions of files
171 clone make a copy of an existing repository
172 commit commit the specified files or all outstanding changes
173 copy mark files as copied for the next commit
174 diff diff repository (or selected files)
175 export dump the header and diffs for one or more changesets
176 grep search for a pattern in specified files and revisions
177 heads show current repository heads
178 help show help for a command, extension, or list of commands
179 identify print information about the working copy
180 import import an ordered set of patches
181 incoming show new changesets found in source
182 init create a new repository in the given directory
183 locate locate files matching specific patterns
184 log show revision history of entire repository or files
185 manifest output the latest or given revision of the project manifest
186 merge Merge working directory with another revision
187 outgoing show changesets not found in destination
188 parents show the parents of the working dir or revision
189 paths show definition of symbolic path names
190 pull pull changes from the specified source
191 push push changes to the specified destination
192 recover roll back an interrupted transaction
193 remove remove the specified files on the next commit
194 rename rename files; equivalent of copy + remove
195 revert revert files or dirs to their states as of some revision
196 rollback roll back the last transaction in this repository
197 root print the root (top) of the current working dir
198 serve export the repository via HTTP
199 status show changed files in the working directory
200 tag add a tag for the current tip or a given revision
201 tags list repository tags
202 tip show the tip revision
203 unbundle apply a changegroup file
204 update update or merge working directory
205 verify verify the integrity of the repository
206 version output version and copyright information
205 207 %% not tested: --debugger
@@ -38,90 +38,92 Mercurial Distributed SCM
38 38
39 39 list of commands (use "hg help -v" to show aliases and global options):
40 40
41 add add the specified files on the next commit
42 annotate show changeset information per file line
43 archive create unversioned archive of a repository revision
44 backout reverse effect of earlier changeset
45 bundle create a changegroup file
46 cat output the latest or given revisions of files
47 clone make a copy of an existing repository
48 commit commit the specified files or all outstanding changes
49 copy mark files as copied for the next commit
50 diff diff repository (or selected files)
51 export dump the header and diffs for one or more changesets
52 grep search for a pattern in specified files and revisions
53 heads show current repository heads
54 help show help for a command, extension, or list of commands
55 identify print information about the working copy
56 import import an ordered set of patches
57 incoming show new changesets found in source
58 init create a new repository in the given directory
59 locate locate files matching specific patterns
60 log show revision history of entire repository or files
61 manifest output the latest or given revision of the project manifest
62 merge Merge working directory with another revision
63 outgoing show changesets not found in destination
64 parents show the parents of the working dir or revision
65 paths show definition of symbolic path names
66 pull pull changes from the specified source
67 push push changes to the specified destination
68 recover roll back an interrupted transaction
69 remove remove the specified files on the next commit
70 rename rename files; equivalent of copy + remove
71 revert revert files or dirs to their states as of some revision
72 rollback roll back the last transaction in this repository
73 root print the root (top) of the current working dir
74 serve export the repository via HTTP
75 status show changed files in the working directory
76 tag add a tag for the current tip or a given revision
77 tags list repository tags
78 tip show the tip revision
79 unbundle apply a changegroup file
80 update update or merge working directory
81 verify verify the integrity of the repository
82 version output version and copyright information
83 add add the specified files on the next commit
84 annotate show changeset information per file line
85 archive create unversioned archive of a repository revision
86 backout reverse effect of earlier changeset
87 bundle create a changegroup file
88 cat output the latest or given revisions of files
89 clone make a copy of an existing repository
90 commit commit the specified files or all outstanding changes
91 copy mark files as copied for the next commit
92 diff diff repository (or selected files)
93 export dump the header and diffs for one or more changesets
94 grep search for a pattern in specified files and revisions
95 heads show current repository heads
96 help show help for a command, extension, or list of commands
97 identify print information about the working copy
98 import import an ordered set of patches
99 incoming show new changesets found in source
100 init create a new repository in the given directory
101 locate locate files matching specific patterns
102 log show revision history of entire repository or files
103 manifest output the latest or given revision of the project manifest
104 merge Merge working directory with another revision
105 outgoing show changesets not found in destination
106 parents show the parents of the working dir or revision
107 paths show definition of symbolic path names
108 pull pull changes from the specified source
109 push push changes to the specified destination
110 recover roll back an interrupted transaction
111 remove remove the specified files on the next commit
112 rename rename files; equivalent of copy + remove
113 revert revert files or dirs to their states as of some revision
114 rollback roll back the last transaction in this repository
115 root print the root (top) of the current working dir
116 serve export the repository via HTTP
117 status show changed files in the working directory
118 tag add a tag for the current tip or a given revision
119 tags list repository tags
120 tip show the tip revision
121 unbundle apply a changegroup file
122 update update or merge working directory
123 verify verify the integrity of the repository
124 version output version and copyright information
41 add add the specified files on the next commit
42 addremove add all new files, delete all missing files (DEPRECATED)
43 annotate show changeset information per file line
44 archive create unversioned archive of a repository revision
45 backout reverse effect of earlier changeset
46 bundle create a changegroup file
47 cat output the latest or given revisions of files
48 clone make a copy of an existing repository
49 commit commit the specified files or all outstanding changes
50 copy mark files as copied for the next commit
51 diff diff repository (or selected files)
52 export dump the header and diffs for one or more changesets
53 grep search for a pattern in specified files and revisions
54 heads show current repository heads
55 help show help for a command, extension, or list of commands
56 identify print information about the working copy
57 import import an ordered set of patches
58 incoming show new changesets found in source
59 init create a new repository in the given directory
60 locate locate files matching specific patterns
61 log show revision history of entire repository or files
62 manifest output the latest or given revision of the project manifest
63 merge Merge working directory with another revision
64 outgoing show changesets not found in destination
65 parents show the parents of the working dir or revision
66 paths show definition of symbolic path names
67 pull pull changes from the specified source
68 push push changes to the specified destination
69 recover roll back an interrupted transaction
70 remove remove the specified files on the next commit
71 rename rename files; equivalent of copy + remove
72 revert revert files or dirs to their states as of some revision
73 rollback roll back the last transaction in this repository
74 root print the root (top) of the current working dir
75 serve export the repository via HTTP
76 status show changed files in the working directory
77 tag add a tag for the current tip or a given revision
78 tags list repository tags
79 tip show the tip revision
80 unbundle apply a changegroup file
81 update update or merge working directory
82 verify verify the integrity of the repository
83 version output version and copyright information
84 add add the specified files on the next commit
85 addremove add all new files, delete all missing files (DEPRECATED)
86 annotate show changeset information per file line
87 archive create unversioned archive of a repository revision
88 backout reverse effect of earlier changeset
89 bundle create a changegroup file
90 cat output the latest or given revisions of files
91 clone make a copy of an existing repository
92 commit commit the specified files or all outstanding changes
93 copy mark files as copied for the next commit
94 diff diff repository (or selected files)
95 export dump the header and diffs for one or more changesets
96 grep search for a pattern in specified files and revisions
97 heads show current repository heads
98 help show help for a command, extension, or list of commands
99 identify print information about the working copy
100 import import an ordered set of patches
101 incoming show new changesets found in source
102 init create a new repository in the given directory
103 locate locate files matching specific patterns
104 log show revision history of entire repository or files
105 manifest output the latest or given revision of the project manifest
106 merge Merge working directory with another revision
107 outgoing show changesets not found in destination
108 parents show the parents of the working dir or revision
109 paths show definition of symbolic path names
110 pull pull changes from the specified source
111 push push changes to the specified destination
112 recover roll back an interrupted transaction
113 remove remove the specified files on the next commit
114 rename rename files; equivalent of copy + remove
115 revert revert files or dirs to their states as of some revision
116 rollback roll back the last transaction in this repository
117 root print the root (top) of the current working dir
118 serve export the repository via HTTP
119 status show changed files in the working directory
120 tag add a tag for the current tip or a given revision
121 tags list repository tags
122 tip show the tip revision
123 unbundle apply a changegroup file
124 update update or merge working directory
125 verify verify the integrity of the repository
126 version output version and copyright information
125 127 hg add [OPTION]... [FILE]...
126 128
127 129 add the specified files on the next commit
@@ -1,4 +1,3
1 (the addremove command is deprecated; use add and remove --after instead)
2 1 adding foo
3 2 checking changesets
4 3 checking manifests
@@ -1,4 +1,3
1 (the addremove command is deprecated; use add and remove --after instead)
2 1 adding foo
3 2 checking changesets
4 3 checking manifests
@@ -1,6 +1,4
1 (the addremove command is deprecated; use add and remove --after instead)
2 1 adding foo
3 (the addremove command is deprecated; use add and remove --after instead)
4 2 adding bomb
5 3 adding a.c
6 4 adding dir/a.o
@@ -1,4 +1,3
1 (the addremove command is deprecated; use add and remove --after instead)
2 1 adding a
3 2 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
4 3 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
@@ -8,7 +7,6 diff -r 33aaa84a386b a
8 7 @@ -1,1 +1,1 @@ a
9 8 -a
10 9 +abc
11 (the addremove command is deprecated; use add and remove --after instead)
12 10 adding b
13 11 M a
14 12 changeset: 0:33aaa84a386b
@@ -90,7 +88,6 diff -r 802f095af299 a
90 88 -a2
91 89 +abc
92 90 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
93 (the addremove command is deprecated; use add and remove --after instead)
94 91 adding b
95 92 M a
96 93 changeset: 1:802f095af299
@@ -1,4 +1,3
1 (the addremove command is deprecated; use add and remove --after instead)
2 1 adding beans/black
3 2 adding beans/borlotti
4 3 adding beans/kidney
General Comments 0
You need to be logged in to leave comments. Login now