# HG changeset patch # User Steve Losh # Date 1245460998 14400 # Node ID 648ad1aaa55d2176704b13fc2e0fe48cb9b7e28b # Parent e549425b0dbbd4c6e4a0328a3da1f9579e08dcce Rename the with_groups function to something more private. diff -r e549425b0dbb -r 648ad1aaa55d prompt.py --- a/prompt.py Fri Jun 19 21:22:11 2009 -0400 +++ b/prompt.py Fri Jun 19 21:23:18 2009 -0400 @@ -11,7 +11,7 @@ import re from mercurial import extensions -def with_groups(m, out): +def _with_groups(m, out): g = m.groups() if any(g) and not all(g): print 'ERROR' @@ -54,17 +54,17 @@ def _branch(m): branch = repo[-1].branch() - return with_groups(m, branch) if branch else '' + return _with_groups(m, branch) if branch else '' def _status(m): st = repo.status(unknown=True)[:5] flag = '!' if any(st[:4]) else '?' if st[-1] else '' - return with_groups(m, flag) if flag else '' + return _with_groups(m, flag) if flag else '' def _bookmark(m): try: book = extensions.find('bookmarks').current(repo) - return with_groups(m, book) if book else '' + return _with_groups(m, book) if book else '' except KeyError: return ''