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