# HG changeset patch # User Matt Mackall # Date 1265623478 -3600 # Node ID f163775e36e08c89802734cfa0f0e50606203126 # Parent 6dc25b01e170daf453f4c628b05febd435716144 summary: various fixes, add a test fix breakage from recent parseurl changes fix reporting of resolved fix reporting of update in certain cases diff -r 6dc25b01e170 -r f163775e36e0 mercurial/commands.py --- a/mercurial/commands.py Mon Feb 08 10:32:44 2010 +0100 +++ b/mercurial/commands.py Mon Feb 08 11:04:38 2010 +0100 @@ -3006,9 +3006,9 @@ else: ui.status(m) - st = list(repo.status(unknown=True))[:7] + st = list(repo.status(unknown=True))[:6] ms = merge_.mergestate(repo) - st.append([f for f in ms if f == 'u']) + st.append([f for f in ms if ms[f] == 'u']) labels = [_('%d modified'), _('%d added'), _('%d removed'), _('%d deleted'), _('%d unknown'), _('%d ignored'), _('%d unresolved')] @@ -3038,8 +3038,13 @@ # all ancestors of branch heads - all ancestors of parent = new csets new = [0] * len(repo) cl = repo.changelog + for a in [cl.rev(n) for n in bheads]: + new[a] = 1 for a in cl.ancestors(*[cl.rev(n) for n in bheads]): new[a] = 1 + for a in [p.rev() for p in parents]: + if a >= 0: + new[a] = 0 for a in cl.ancestors(*[p.rev() for p in parents]): new[a] = 0 new = sum(new) @@ -3071,7 +3076,7 @@ repo.ui.pushbuffer() o = repo.findoutgoing(other) repo.ui.popbuffer() - o = repo.changelog.nodesbetween(o, revs)[0] + o = repo.changelog.nodesbetween(o, None)[0] if o: t.append(_('%d outgoing') % len(o))