bzr version-info very slow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Lawrence Mitchell |
Bug Description
I'm using bzr version-info --custom --template=
strace seems to indicate that it's stalling communicating with launchpad:
write(3, "0.665 ssh implementation is Ope"..., 37) = 37
socketpair(PF_FILE, SOCK_STREAM, 0, [4, 5]) = 0
fcntl(4, F_GETFD) = 0
fcntl(4, F_SETFD, FD_CLOEXEC) = 0
pipe([6, 7]) = 0
fcntl(7, F_GETFD) = 0
fcntl(7, F_SETFD, FD_CLOEXEC) = 0
clone(child_
close(7) = 0
mmap(NULL, 1052672, PROT_READ|
read(6, "", 1048576) = 0
mremap(
close(6) = 0
munmap(
close(5) = 0
sendto(4, "bzr message 3 (bzr 1.6)\n\
brk(0x2266000) = 0x2266000
recvfrom(4, "bzr message 3 (bzr 1.6)\n\
...delay here
However, it would seem that all the information required is local. For example:
grep "^\(bound\
from the source directory will give nick while bzr revno --tree gives the revno.
I'm using:
Bazaar 2.4.1-1ubuntu1
Ubuntu 11.10
Related branches
- Vincent Ladeuil: Approve
- Martin Packman (community): Approve
-
Diff: 66 lines (+22/-3)3 files modifiedbzrlib/cmd_version_info.py (+6/-1)
bzrlib/tests/blackbox/test_version_info.py (+12/-2)
doc/en/release-notes/bzr-2.5.txt (+4/-0)
Changed in bzr: | |
assignee: | nobody → Lawrence Mitchell (wence) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in bzr: | |
milestone: | none → 2.5b3 |
status: | Confirmed → Fix Released |
Lawrence, your branch fixing this looks reasonable, do you want to propose it for merging into Bazaar so we can work out how to write a test to verify it resolves the issue?