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:
parent
aa12a431f3
commit
715d64fe99
@ -641,9 +641,13 @@ def do_export(parser):
|
|||||||
except bzrlib.errors.DivergedBranches:
|
except bzrlib.errors.DivergedBranches:
|
||||||
print "error %s non-fast forward" % ref
|
print "error %s non-fast forward" % ref
|
||||||
continue
|
continue
|
||||||
else:
|
|
||||||
|
try:
|
||||||
wt = repo.bzrdir.open_workingtree()
|
wt = repo.bzrdir.open_workingtree()
|
||||||
wt.update()
|
wt.update()
|
||||||
|
except bzrlib.errors.NoWorkingTree:
|
||||||
|
pass
|
||||||
|
|
||||||
print "ok %s" % ref
|
print "ok %s" % ref
|
||||||
|
|
||||||
print
|
print
|
||||||
|
Loading…
Reference in New Issue
Block a user