changeset 14467:f3b50431eb7e

workingctx.remove: use self.forget
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 27 May 2011 21:11:44 +0200
parents bd34a027f3ed
children 755aabb3eada
files mercurial/context.py
diffstat 1 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/context.py	Tue May 31 13:18:56 2011 +0200
+++ b/mercurial/context.py	Fri May 27 21:11:44 2011 +0200
@@ -863,13 +863,7 @@
                     except OSError, inst:
                         if inst.errno != errno.ENOENT:
                             raise
-            for f in list:
-                if self._repo.dirstate[f] == 'a':
-                    self._repo.dirstate.drop(f)
-                elif f not in self._repo.dirstate:
-                    self._repo.ui.warn(_("%s not tracked!\n") % f)
-                else:
-                    self._repo.dirstate.remove(f)
+            self.forget(list)
         finally:
             wlock.release()