Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 5763:e20de0caf8e7
Show number of changesets written to bundle files by default (issue569)
This was only shown with -v before.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 30 Dec 2007 19:46:13 +0100 |
parents | 0145f9afb0e7 |
children | 41ca0e20117e |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Dec 30 17:45:26 2007 +0100 +++ b/mercurial/localrepo.py Sun Dec 30 19:46:13 2007 +0100 @@ -1494,8 +1494,9 @@ return remote.unbundle(cg, remote_heads, 'push') return ret[1] - def changegroupinfo(self, nodes): - self.ui.note(_("%d changesets found\n") % len(nodes)) + def changegroupinfo(self, nodes, source): + if self.ui.verbose or source == 'bundle': + self.ui.status(_("%d changesets found\n") % len(nodes)) if self.ui.debugflag: self.ui.debug(_("List of changesets:\n")) for node in nodes: @@ -1521,7 +1522,7 @@ # msng is short for missing - compute the list of changesets in this # changegroup. msng_cl_lst, bases, heads = cl.nodesbetween(bases, heads) - self.changegroupinfo(msng_cl_lst) + self.changegroupinfo(msng_cl_lst, source) # Some bases may turn out to be superfluous, and some heads may be # too. nodesbetween will return the minimal set of bases and heads # necessary to re-create the changegroup. @@ -1785,7 +1786,7 @@ cl = self.changelog nodes = cl.nodesbetween(basenodes, None)[0] revset = dict.fromkeys([cl.rev(n) for n in nodes]) - self.changegroupinfo(nodes) + self.changegroupinfo(nodes, source) def identity(x): return x