# HG changeset patch # User Emanuele Aina # Date 2007-03-06 20:45:43 # Node ID e59286f1518910abefdbec437391910dc0c03f1c # Parent de85ff0aaac542c01e04d58ee1a424f67df43762 Use "f in dirstate" instead of "dirstate.state(f) == '?'" diff --git a/contrib/purge/purge.py b/contrib/purge/purge.py --- a/contrib/purge/purge.py +++ b/contrib/purge/purge.py @@ -61,9 +61,7 @@ class Purge(object): self._ui.warn(_('warning: %s\n') % msg) def _remove_file(self, name): - # dirstate.state() requires a path relative to the root - # directory. - if self._repo.dirstate.state(name) != '?': + if name in self._repo.dirstate: return self._ui.note(_('Removing file %s\n') % name) if self._act: