Mercurial > hg > mercurial-crew-with-dirclash
diff hgext/mq.py @ 5294:e14118f92730
mq: fix regression in 6fd953d5faea
It caused qrefresh; qrefresh -X addedfile to leave the file as normal in dirstate.
It should be marked added on the second pass.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 10 Sep 2007 15:00:05 -0700 |
parents | 5517aa5aafb0 |
children | 24de027551c1 |
line wrap: on
line diff
--- a/hgext/mq.py +++ b/hgext/mq.py @@ -1025,9 +1025,8 @@ class queue: copies = {} for dst in a: src = repo.dirstate.copied(dst) - if src is None: - continue - copies.setdefault(src, []).append(dst) + if src is not None: + copies.setdefault(src, []).append(dst) repo.dirstate.add(dst) # remember the copies between patchparent and tip # this may be slow, so don't do it if we're not tracking copies