remote-bzr: update working tree upon pushing

A 'git push' doesn't update the working directory on the remote, but a 'bzr push' does. Teach the remote helper for bzr to update the working tree on the bzr side upon pushing via the "export" command. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Nov 11, 2012 at 15:19 UTC adec972e5299b66a78cd30d4cdf54c5597a9560b
1 file changed +2
contrib/remote-helpers/git-remote-bzr
+2
@@ -571,6 +571,8 @@ def do_export(parser):
571 repo.generate_revision_history(revid, marks.get_tip('master'))
572 revno, revid = repo.last_revision_info()
573 peer.import_last_revision_info_and_tags(repo, revno, revid)
574 + wt = peer.bzrdir.open_workingtree()
575 + wt.update()
576 print "ok %s" % ref
577 print
578