Activity log for bug #317731

Date Who What changed Old value New value Message
2009-01-16 02:13:37 Bryce Harrington bug added bug
2009-01-16 02:13:37 Bryce Harrington bug added attachment '.bzr.log' (.bzr.log)
2009-01-16 04:27:23 Bryce Harrington description [Problem] bzr diff gives the following nasty looking error if done while in the middle of a bzr --commit operation: bzr: ERROR: Could not acquire lock "[Errno 11] Resource temporarily unavailable" /usr/lib/python2.5/site-packages/bzrlib/lock.py:79: UserWarning: lock on <open file u'/home/bryce/src/Arsenal/arsenal/.bzr/checkout/dirstate', mode 'rb' at 0x860e650> not released warn("lock on %r not released" % self.f) [Discussion] Frequently when I'm writing my commit message in emacs, I want to refer to the diff so I can remind myself of exactly what I'd done. So, I ctrl-z to background the editor and run 'bzr diff' to see. I guess I'm used to doing this in other version control systems, but in bzr unfortunately it doesn't seem to work. This error gets printed instead: bryce@blackwold:~/src/Arsenal/arsenal$ bzr commit Committing to: /home/bryce/src/Arsenal/arsenal/ modified contrib/new-bugs.py [1]+ Stopped bzr commit bryce@blackwold:~/src/Arsenal/arsenal$ bzr diff bzr: ERROR: Could not acquire lock "[Errno 11] Resource temporarily unavailable" /usr/lib/python2.5/site-packages/bzrlib/lock.py:79: UserWarning: lock on <open file u'/home/bryce/src/Arsenal/arsenal/.bzr/checkout/dirstate', mode 'rb' at 0x860e650> not released warn("lock on %r not released" % self.f) bryce@blackwold:~/src/Arsenal/arsenal$ Now, I know that I can do `bzr commit --show-diff`, and that's a more than adequate workaround for the problem itself, however the error message is pretty disconcerting if you're new to bzr and don't yet know about the --show-diff option. Now, it would be ideal if one could safely use bzr diff while a bzr commit was in progress. But maybe that's not feasible for whatever reason. But at least please improve the error message! I would recommend something along the lines of: bzr: ERROR: Could not perform diff while repository locked. (Are you in the middle of a commit and need to see a diff? Try `bzr commit --show-diff`.) [Problem] bzr diff gives the following nasty looking error if done while in the middle of a bzr --commit operation: bzr: ERROR: Could not acquire lock "[Errno 11] Resource temporarily unavailable" /usr/lib/python2.5/site-packages/bzrlib/lock.py:79: UserWarning: lock on <open file u'/home/bryce/src/Arsenal/arsenal/.bzr/checkout/dirstate', mode 'rb' at 0x860e650> not released warn("lock on %r not released" % self.f) [Discussion] Frequently when I'm writing my commit message in emacs, I want to refer to the diff so I can remind myself of exactly what I'd done. So, I ctrl-z to background the editor and run 'bzr diff' to see. I guess I'm used to doing this in other version control systems, but in bzr unfortunately it doesn't seem to work. This error gets printed instead: bryce@blackwold:~/src/Arsenal/arsenal$ bzr commit Committing to: /home/bryce/src/Arsenal/arsenal/ modified contrib/new-bugs.py [1]+ Stopped bzr commit bryce@blackwold:~/src/Arsenal/arsenal$ bzr diff bzr: ERROR: Could not acquire lock "[Errno 11] Resource temporarily unavailable" /usr/lib/python2.5/site-packages/bzrlib/lock.py:79: UserWarning: lock on <open file u'/home/bryce/src/Arsenal/arsenal/.bzr/checkout/dirstate', mode 'rb' at 0x860e650> not released warn("lock on %r not released" % self.f) bryce@blackwold:~/src/Arsenal/arsenal$ Now, I know that I can do `bzr commit --show-diff`, and that's a more than adequate workaround for the problem itself, however the error message is pretty disconcerting if you're new to bzr and don't yet know about the --show-diff option. Now, it would be ideal if one could safely use bzr diff while a bzr commit was in progress. But maybe that's not feasible for whatever reason. But at least please improve the error message! I would recommend something along the lines of: bzr: ERROR: Could not perform diff while repository locked. (Are you in the middle of a commit and need to see a diff? Try `bzr commit --show-diff`.) [Workaround] Add to your ~/.bazaar/bazaar.conf: [ALIASES] commit=commit --show-diff
2009-03-03 04:26:49 Martin Pool bzr: status New Confirmed
2009-03-03 04:26:49 Martin Pool bzr: importance Undecided High
2009-03-03 04:26:49 Martin Pool bzr: statusexplanation This is an aspect of bug 98836
2010-11-09 21:09:02 Paul Sladen summary bzr diff while in middle of a bzr commit gives an ugly error message bzr diff while in middle of a bzr commit complains about locking
2011-01-15 20:31:43 Jelmer Vernooij summary bzr diff while in middle of a bzr commit complains about locking bzr diff while in middle of a bzr commit gives an ugly error message about locking
2011-01-15 20:32:24 Jelmer Vernooij summary bzr diff while in middle of a bzr commit gives an ugly error message about locking ugly error message when dirstate lock is already active
2011-02-01 13:21:14 Jelmer Vernooij tags dirstate ui
2011-09-07 02:10:28 Bryce Harrington removed subscriber Bryce Harrington
2017-11-08 22:52:36 Jelmer Vernooij tags dirstate ui check-for-breezy dirstate ui
2017-11-11 17:54:12 Jelmer Vernooij tags check-for-breezy dirstate ui confusing-ui dirstate ui
2017-11-11 17:54:28 Jelmer Vernooij affects bzr brz
2017-11-11 17:54:41 Jelmer Vernooij affects brz bzr
2017-11-11 17:54:55 Jelmer Vernooij bug task added brz
2017-11-11 17:55:01 Jelmer Vernooij brz: status New Triaged
2017-11-11 17:55:03 Jelmer Vernooij brz: importance Undecided Medium