##// END OF EJS Templates
deprecate addremove command.
Vadim Gelfer -
r2181:690da72b default
parent child Browse files
Show More
@@ -809,13 +809,19 b' def add(ui, repo, *pats, **opts):'
809 809 repo.add(names)
810 810
811 811 def addremove(ui, repo, *pats, **opts):
812 """add all new files, delete all missing files
813
812 """add all new files, delete all missing files (DEPRECATED)
813
814 (DEPRECATED)
814 815 Add all new files and remove all missing files from the repository.
815 816
816 817 New files are ignored if they match any of the patterns in .hgignore. As
817 818 with add, these changes take effect at the next commit.
819
820 This command is now deprecated and will be removed in a future
821 release. Please use add and remove --after instead.
818 822 """
823 ui.warn(_('(the addremove command is deprecated; use add and remove '
824 '--after instead)\n'))
819 825 return addremove_lock(ui, repo, pats, opts)
820 826
821 827 def addremove_lock(ui, repo, pats, opts, wlock=None):
@@ -1153,7 +1159,7 b' def commit(ui, repo, *pats, **opts):'
1153 1159 (logfile, inst.strerror))
1154 1160
1155 1161 if opts['addremove']:
1156 addremove(ui, repo, *pats, **opts)
1162 addremove_lock(ui, repo, pats, opts)
1157 1163 fns, match, anypats = matchpats(repo, pats, opts)
1158 1164 if pats:
1159 1165 modified, added, removed, deleted, unknown = (
@@ -1894,7 +1900,7 b' def import_(ui, repo, patch1, *patches, '
1894 1900 files = util.patch(strip, pf, ui)
1895 1901
1896 1902 if len(files) > 0:
1897 addremove(ui, repo, *files)
1903 addremove_lock(ui, repo, files, {})
1898 1904 repo.commit(files, message, user)
1899 1905
1900 1906 def incoming(ui, repo, source="default", **opts):
@@ -39,7 +39,7 b' Mercurial Distributed SCM'
39 39 list of commands (use "hg help -v" to show aliases and global options):
40 40
41 41 add add the specified files on the next commit
42 addremove add all new files, delete all missing files
42 addremove add all new files, delete all missing files (DEPRECATED)
43 43 annotate show changeset information per file line
44 44 archive create unversioned archive of a repository revision
45 45 backout reverse effect of earlier changeset
@@ -82,7 +82,7 b' list of commands (use "hg help -v" to sh'
82 82 verify verify the integrity of the repository
83 83 version output version and copyright information
84 84 add add the specified files on the next commit
85 addremove add all new files, delete all missing files
85 addremove add all new files, delete all missing files (DEPRECATED)
86 86 annotate show changeset information per file line
87 87 archive create unversioned archive of a repository revision
88 88 backout reverse effect of earlier changeset
General Comments 0
You need to be logged in to leave comments. Login now