##// END OF EJS Templates
Show number of new heads when doing a pull
mpm@selenic.com -
r1040:35e883d1 default
parent child Browse files
Show More
@@ -1569,6 +1569,8 b' class localrepository:'
1569
1569
1570 tr = self.transaction()
1570 tr = self.transaction()
1571
1571
1572 oldheads = len(self.changelog.heads())
1573
1572 # pull off the changeset group
1574 # pull off the changeset group
1573 self.ui.status("adding changesets\n")
1575 self.ui.status("adding changesets\n")
1574 co = self.changelog.tip()
1576 co = self.changelog.tip()
@@ -1592,9 +1594,14 b' class localrepository:'
1592 revisions += fl.count() - o
1594 revisions += fl.count() - o
1593 files += 1
1595 files += 1
1594
1596
1597 newheads = len(self.changelog.heads())
1598 heads = ""
1599 if oldheads and newheads > oldheads:
1600 heads = " (+%d heads)" % (newheads - oldheads)
1601
1595 self.ui.status(("added %d changesets" +
1602 self.ui.status(("added %d changesets" +
1596 " with %d changes to %d files\n")
1603 " with %d changes to %d files%s\n")
1597 % (changesets, revisions, files))
1604 % (changesets, revisions, files, heads))
1598
1605
1599 tr.close()
1606 tr.close()
1600
1607
General Comments 0
You need to be logged in to leave comments. Login now