comparison mercurial/commands.py @ 2673:109a22f5434a

hooks: add url to changegroup, incoming, prechangegroup, pretxnchangegroup hooks all repository classes now have url() method that returns url of repo.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 25 Jul 2006 13:50:32 -0700
parents 2c5d5cf35034
children 0fb28dbf0dc7 4af4e1870fa0
comparison
equal deleted inserted replaced
2671:82864a2eb709 2673:109a22f5434a
2761 yield chunk 2761 yield chunk
2762 else: 2762 else:
2763 raise util.Abort(_("%s: unknown bundle compression type") 2763 raise util.Abort(_("%s: unknown bundle compression type")
2764 % fname) 2764 % fname)
2765 gen = generator(util.filechunkiter(f, 4096)) 2765 gen = generator(util.filechunkiter(f, 4096))
2766 modheads = repo.addchangegroup(util.chunkbuffer(gen), 'unbundle') 2766 modheads = repo.addchangegroup(util.chunkbuffer(gen), 'unbundle',
2767 'bundle:' + fname)
2767 return postincoming(ui, repo, modheads, opts['update']) 2768 return postincoming(ui, repo, modheads, opts['update'])
2768 2769
2769 def undo(ui, repo): 2770 def undo(ui, repo):
2770 """undo the last commit or pull (DEPRECATED) 2771 """undo the last commit or pull (DEPRECATED)
2771 2772