648ad1aaa55d

Rename the with_groups function to something more private.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 19 Jun 2009 21:23:18 -0400
parents e549425b0dbb
children 0325b621ea07
branches/tags (none)
files prompt.py

Changes

--- 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 ''