Show More
@@ -641,7 +641,8 b' def add(ui, repo, *pats, **opts):' | |||||
641 | elif repo.dirstate.state(abs) == '?': |
|
641 | elif repo.dirstate.state(abs) == '?': | |
642 | ui.status(_('adding %s\n') % rel) |
|
642 | ui.status(_('adding %s\n') % rel) | |
643 | names.append(abs) |
|
643 | names.append(abs) | |
644 | repo.add(names) |
|
644 | if not opts['dry_run']: | |
|
645 | repo.add(names) | |||
645 |
|
646 | |||
646 | def addremove(ui, repo, *pats, **opts): |
|
647 | def addremove(ui, repo, *pats, **opts): | |
647 | """add all new files, delete all missing files (DEPRECATED) |
|
648 | """add all new files, delete all missing files (DEPRECATED) | |
@@ -2801,7 +2802,8 b' table = {' | |||||
2801 | "^add": |
|
2802 | "^add": | |
2802 | (add, |
|
2803 | (add, | |
2803 | [('I', 'include', [], _('include names matching the given patterns')), |
|
2804 | [('I', 'include', [], _('include names matching the given patterns')), | |
2804 |
('X', 'exclude', [], _('exclude names matching the given patterns')) |
|
2805 | ('X', 'exclude', [], _('exclude names matching the given patterns')), | |
|
2806 | ('n', 'dry-run', None, _('print what would be done'))], | |||
2805 | _('hg add [OPTION]... [FILE]...')), |
|
2807 | _('hg add [OPTION]... [FILE]...')), | |
2806 | "debugaddremove|addremove": |
|
2808 | "debugaddremove|addremove": | |
2807 | (addremove, |
|
2809 | (addremove, |
General Comments 0
You need to be logged in to leave comments.
Login now