summaryrefslogtreecommitdiffstats
path: root/subcmds/overview.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/overview.py')
-rw-r--r--subcmds/overview.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/subcmds/overview.py b/subcmds/overview.py
index a509bd9a..418459ae 100644
--- a/subcmds/overview.py
+++ b/subcmds/overview.py
@@ -13,6 +13,7 @@
13# See the License for the specific language governing permissions and 13# See the License for the specific language governing permissions and
14# limitations under the License. 14# limitations under the License.
15 15
16from __future__ import print_function
16from color import Coloring 17from color import Coloring
17from command import PagedCommand 18from command import PagedCommand
18 19
@@ -54,8 +55,11 @@ are displayed.
54 def __init__(self, config): 55 def __init__(self, config):
55 Coloring.__init__(self, config, 'status') 56 Coloring.__init__(self, config, 'status')
56 self.project = self.printer('header', attr='bold') 57 self.project = self.printer('header', attr='bold')
58 self.text = self.printer('text')
57 59
58 out = Report(all_branches[0].project.config) 60 out = Report(all_branches[0].project.config)
61 out.text("Deprecated. See repo info -o.")
62 out.nl()
59 out.project('Projects Overview') 63 out.project('Projects Overview')
60 out.nl() 64 out.nl()
61 65
@@ -70,11 +74,11 @@ are displayed.
70 74
71 commits = branch.commits 75 commits = branch.commits
72 date = branch.date 76 date = branch.date
73 print '%s %-33s (%2d commit%s, %s)' % ( 77 print('%s %-33s (%2d commit%s, %s)' % (
74 branch.name == project.CurrentBranch and '*' or ' ', 78 branch.name == project.CurrentBranch and '*' or ' ',
75 branch.name, 79 branch.name,
76 len(commits), 80 len(commits),
77 len(commits) != 1 and 's' or ' ', 81 len(commits) != 1 and 's' or ' ',
78 date) 82 date))
79 for commit in commits: 83 for commit in commits:
80 print '%-35s - %s' % ('', commit) 84 print('%-35s - %s' % ('', commit))