Mercurial > public > mercurial-scm > hg-stable
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 Fri Sep 07 17:54:38 2007 +0200 +++ b/hgext/mq.py Mon Sep 10 15:00:05 2007 -0700 @@ -1025,9 +1025,8 @@ 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