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