# HG changeset patch # User Matt Mackall # Date 1246395368 18000 # Node ID 1247751d9bf8e9d9a5bb0560576105fc68538e86 # Parent c68ccda3451ba0f85213eadbdc396f74a08a477b addremove: normalize some variable names diff -r c68ccda3451b -r 1247751d9bf8 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Mon Jun 29 15:34:17 2009 -0500 +++ b/mercurial/cmdutil.py Tue Jun 30 15:56:08 2009 -0500 @@ -297,7 +297,7 @@ dry_run = opts.get('dry_run') if similarity is None: similarity = float(opts.get('similarity') or 0) - add, remove = [], [] + unknown, deleted = [], [] audit_path = util.path_auditor(repo.root) m = match(repo, pats, opts) for abs in repo.walk(m): @@ -310,17 +310,17 @@ rel = m.rel(abs) exact = m.exact(abs) if good and abs not in repo.dirstate: - add.append(abs) + unknown.append(abs) if repo.ui.verbose or not exact: repo.ui.status(_('adding %s\n') % ((pats and rel) or abs)) if repo.dirstate[abs] != 'r' and (not good or not util.lexists(target) or (os.path.isdir(target) and not os.path.islink(target))): - remove.append(abs) + deleted.append(abs) if repo.ui.verbose or not exact: repo.ui.status(_('removing %s\n') % ((pats and rel) or abs)) if not dry_run: - repo.remove(remove) - repo.add(add) + repo.remove(deleted) + repo.add(unknown) if similarity > 0: for old, new, score in findrenames(repo, m, similarity): if repo.ui.verbose or not m.exact(old) or not m.exact(new):