comparison mercurial/hg.py @ 780:5cb8a3a023b2

Add changegroup hook for push/pull
author mpm@selenic.com
date Wed, 27 Jul 2005 09:07:28 -0800
parents f05deda58457
children 26f3d353851f
comparison
equal deleted inserted replaced
779:b3c7cb74d325 780:5cb8a3a023b2
1292 self.ui.status(("added %d changesets" + 1292 self.ui.status(("added %d changesets" +
1293 " with %d changes to %d files\n") 1293 " with %d changes to %d files\n")
1294 % (changesets, revisions, files)) 1294 % (changesets, revisions, files))
1295 1295
1296 tr.close() 1296 tr.close()
1297
1298 if not self.hook("changegroup"):
1299 return 1
1300
1297 return 1301 return
1298 1302
1299 def update(self, node, allow=False, force=False, choose=None, 1303 def update(self, node, allow=False, force=False, choose=None,
1300 moddirstate=True): 1304 moddirstate=True):
1301 pl = self.dirstate.parents() 1305 pl = self.dirstate.parents()