Mercurial > public > mercurial-scm > hg-stable
diff hgext/patchbomb.py @ 10022:585f51f8b5f0 stable
patchbomb: fix bug introduced in 4ddfad7ebd98 and add test
Thanks to Augie Fackler for reporting this.
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Tue, 08 Dec 2009 23:23:59 +0100 |
parents | 4ddfad7ebd98 |
children | 15fbbc939373 25e572394f5c |
line wrap: on
line diff
--- a/hgext/patchbomb.py Sun Dec 06 23:22:17 2009 +0100 +++ b/hgext/patchbomb.py Tue Dec 08 23:23:59 2009 +0100 @@ -231,14 +231,15 @@ '''Return the revisions present locally but not in dest''' dest = ui.expandpath(dest or 'default-push', dest or 'default') dest, revs, checkout = hg.parseurl(dest, revs) - revs = [repo.lookup(rev) for rev in revs] + if revs: + revs = [repo.lookup(rev) for rev in revs] other = hg.repository(cmdutil.remoteui(repo, opts), dest) ui.status(_('comparing with %s\n') % dest) o = repo.findoutgoing(other) if not o: ui.status(_("no changes found\n")) return [] - o = repo.changelog.nodesbetween(o, revs or None)[0] + o = repo.changelog.nodesbetween(o, revs)[0] return [str(repo.changelog.rev(r)) for r in o] def getpatches(revs):