Mercurial > hg
changeset 6590:9f80e062d71c
status: rename type_ to state
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 12 May 2008 11:37:08 -0500 |
parents | 0f98cae7c77f |
children | eda3fd322a7f |
files | mercurial/dirstate.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dirstate.py Mon May 12 11:37:08 2008 -0500 +++ b/mercurial/dirstate.py Mon May 12 11:37:08 2008 -0500 @@ -590,7 +590,7 @@ for src, fn, st in self.statwalk(files, match, unknown=list_unknown, ignored=list_ignored): if fn in dmap: - type_, mode, size, time, foo = dmap[fn] + state, mode, size, time, foo = dmap[fn] else: if (list_ignored or fn in files) and self._dirignore(fn): if list_ignored: @@ -612,11 +612,11 @@ nonexistent = False # XXX: what to do with file no longer present in the fs # who are not removed in the dirstate ? - if nonexistent and type_ in "nma": + if nonexistent and state in "nma": dadd(fn) continue # check the common case first - if type_ == 'n': + if state == 'n': if not st: st = lstat(_join(fn)) if (size >= 0 and @@ -629,11 +629,11 @@ ladd(fn) elif list_clean: cadd(fn) - elif type_ == 'm': + elif state == 'm': madd(fn) - elif type_ == 'a': + elif state == 'a': aadd(fn) - elif type_ == 'r': + elif state == 'r': radd(fn) return (lookup, modified, added, removed, deleted, unknown, ignored,