Mercurial > public > mercurial-scm > hg-stable
diff hgext/children.py @ 4785:be78ab217109
children extension: Don't abort when looking at the null revision.
Since 62c56d8f368b revlog.children only returns real children,
so this is no longer a problem.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 03 Jul 2007 12:50:05 +0200 |
parents | 8b90d763ea90 |
children | cd65a67aff31 |
line wrap: on
line diff
--- a/hgext/children.py Tue Jul 03 12:46:34 2007 +0200 +++ b/hgext/children.py Tue Jul 03 12:50:05 2007 +0200 @@ -7,9 +7,8 @@ # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. -from mercurial import cmdutil, util +from mercurial import cmdutil from mercurial.i18n import _ -from mercurial.node import nullid def children(ui, repo, file_=None, **opts): @@ -26,9 +25,6 @@ ctx = repo.filectx(file_, changeid=rev) else: ctx = repo.changectx(rev) - if ctx.node() == nullid: - raise util.Abort(_("All non-merge changesets are children of " - "the null revision!")) displayer = cmdutil.show_changeset(ui, repo, opts) for node in [cp.node() for cp in ctx.children()]: