remote-bzr: always try to update the worktree

And fail properly when we can't.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Felipe Contreras 2013-04-30 20:09:56 -05:00 committed by Junio C Hamano
parent aa12a431f3
commit 715d64fe99

View File

@ -641,9 +641,13 @@ def do_export(parser):
except bzrlib.errors.DivergedBranches:
print "error %s non-fast forward" % ref
continue
else:
try:
wt = repo.bzrdir.open_workingtree()
wt.update()
except bzrlib.errors.NoWorkingTree:
pass
print "ok %s" % ref
print