Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 3513:9383af6f236d
Show number (-v) and list (--debug) of changesets with bundle/pull/push etc.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 25 Oct 2006 18:45:18 +0200 |
parents | bd8339976504 |
children | 26b556c1d01d eda9e7c9300d |
line wrap: on
line diff
--- a/mercurial/localrepo.py Wed Oct 25 18:22:04 2006 +0200 +++ b/mercurial/localrepo.py Wed Oct 25 18:45:18 2006 +0200 @@ -1336,6 +1336,13 @@ return remote.unbundle(cg, remote_heads, 'push') return ret[1] + def changegroupinfo(self, nodes): + self.ui.note(_("%d changesets found\n") % len(nodes)) + if self.ui.debugflag: + self.ui.debug(_("List of changesets:\n")) + for node in nodes: + self.ui.debug("%s\n" % hex(node)) + def changegroupsubset(self, bases, heads, source): """This function generates a changegroup consisting of all the nodes that are descendents of any of the bases, and ancestors of any of @@ -1356,6 +1363,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) # 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. @@ -1619,6 +1627,7 @@ cl = self.changelog nodes = cl.nodesbetween(basenodes, None)[0] revset = dict.fromkeys([cl.rev(n) for n in nodes]) + self.changegroupinfo(nodes) def identity(x): return x