`bzr ignore` problems aka file system access issues

Bulgrien, Kevin Kevin.Bulgrien at GDSATCOM.com
Thu Aug 16 18:27:47 UTC 2012


IT has been on a mission to remove admin access...

I have a checkout on my C:\ drive root that I use to version control various configuration elements on my system.

I have logged a bug where read-only resources in the file tree prevent the Bazaar GUI from being usable (https://bugs.launchpad.net/bugs/1012907).

That issue was worked around by using command-line Bazaar.  Today, however, after the IT fiasco, running `bzr ignore` produces errors like:

$ cd /c
$ bzr ignore pending.un
bzr: ERROR: [Errno 13] Permission denied

$ tail -21 /c/Documents\ and\ Settings/kbulgrien/My\ Documents/.bzr.log

Thu 2012-08-16 13:07:15 -0500
0.094  bazaar version: 2.5.1
0.094  bzr arguments: [u'ignore', u'pending.un']
0.094  looking for plugins in C:/Documents and Settings/kbulgrien/Application Data/bazaar/2.0/plugins
0.094  looking for plugins in C:/Program Files/Bazaar/plugins
0.141  encoding stdout as osutils.get_user_encoding() 'cp1252'
0.172  opening working tree 'C:/'
0.219  Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 920, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1131, in run_bzr
  File "bzrlib\commands.pyo", line 673, in run_argv_aliases
  File "bzrlib\commands.pyo", line 695, in run
  File "bzrlib\cleanup.pyo", line 136, in run_simple
  File "bzrlib\cleanup.pyo", line 166, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 3209, in run
  File "bzrlib\ignores.pyo", line 221, in tree_ignores_add_patterns
  File "bzrlib\atomicfile.pyo", line 75, in __init__
OSError: [Errno 13] Permission denied

0.219  return code 3

This is an MSYS environment, but the same error log information is returned if the operation is performed using a CMD shell.

I can manually edit C:\.bzrignore and can commit C:\.bzrignore from the command-line.  These, and other miscellaneous actions produced:

0.219  return code 3
[ 4116] 2012-08-16 13:10:47.865 INFO: checking status of VCSPath(u'C:\\')
787.500  opening working tree 'C:/'
794.672  opening working tree 'C:/'

Thu 2012-08-16 13:10:55 -0500
0.110  bazaar version: 2.5.1
0.110  bzr arguments: [u'status']
0.110  looking for plugins in C:/Documents and Settings/kbulgrien/Application Data/bazaar/2.0/plugins
0.110  looking for plugins in C:/Program Files/Bazaar/plugins
0.157  encoding stdout as osutils.get_user_encoding() 'cp1252'
0.188  opening working tree 'C:/'
0.204  check paths: None
0.250  return code 0

Thu 2012-08-16 13:10:59 -0500
0.094  bazaar version: 2.5.1
0.110  bzr arguments: [u'status', u'.']
0.110  looking for plugins in C:/Documents and Settings/kbulgrien/Application Data/bazaar/2.0/plugins
0.110  looking for plugins in C:/Program Files/Bazaar/plugins
0.157  encoding stdout as osutils.get_user_encoding() 'cp1252'
0.188  opening working tree 'C:/'
0.188  check paths: None
0.235  return code 0

Thu 2012-08-16 13:11:18 -0500
0.094  bazaar version: 2.5.1
0.094  bzr arguments: [u'diff', u'.bzrignore']
0.094  looking for plugins in C:/Documents and Settings/kbulgrien/Application Data/bazaar/2.0/plugins
0.094  looking for plugins in C:/Program Files/Bazaar/plugins
0.157  encoding stdout as osutils.get_user_encoding() 'cp1252'
0.188  opening working tree 'C:/'
0.203  return code 1

Thu 2012-08-16 13:11:35 -0500
0.094  bazaar version: 2.5.1
0.094  bzr arguments: [u'commit', u'.bzrignore']
0.094  looking for plugins in C:/Documents and Settings/kbulgrien/Application Data/bazaar/2.0/plugins
0.094  looking for plugins in C:/Program Files/Bazaar/plugins
0.141  encoding stdout as osutils.get_user_encoding() 'cp1252'
0.188  opening working tree 'C:/'
0.297  preparing to commit
[ 3248] 2012-08-16 13:11:36.085 INFO: Committing to: D:/data/bzr/kbulgrien/windows_xp/apd4143/c/
0.454  Selecting files for commit with filter [u'.bzrignore']
[ 3248] 2012-08-16 13:11:36.101 INFO: modified .bzrignore
0.485  check paths: [u'.bzrignore']
21.704  Using fetch logic to copy between CHKInventoryRepository('file:///C:/.bzr/repository/')(RepositoryFormat2a()) and CHKInventoryRepository('file:///D:/data/bzr/kbulgrien/.bzr/repository/')(RepositoryFormat2a())
21.704  fetching: <SearchResult search:(set(['xxxxx.xxxxxxxx at xxxxxxxxxxxx-20120816181136-kiha38soarel890g']), ['xxxxx.xxxxxxxx at xxxxxxxxxxxx-20120313184610-cgy8durye4w7ipdn', 'xxxxx.xxxxxxxx at xxxxxxxxxxxx-20120320173141-m527k4nf1yxgvnoa', 'xxxxx.xxxxxxxx at xxxxxxxxxxxx-20120613233052-vji9e3g6w79fbvuy', 'xxxxx.xxxxxxxx at xxxxxxxxxxxx-20120808124659-sl9tjl4crpks4dxk', 'xxxxx.xxxxxxxx at xxxxxxxxxxxx-20120315155011-1f4kzuexozp59l2e', ...], 1)>
[ 3248] 2012-08-16 13:11:57.476 INFO: Committed revision 27.
21.845  Committed revid xxxxx.xxxxxxxx at xxxxxxxxxxxx-20120816181136-kiha38soarel890g as revno 27.
21.907  return code 0
[ 4116] 2012-08-16 13:11:59.742 INFO: checking status of VCSPath(u'C:\\')
859.376  opening working tree 'C:/'

Is there is something wrong in the way bzr deals with permissions issues.  Is this not showing that it fails per permissions issues that really should not impact its operation?

Is there something I can do to better capture what is going on?

Kevin Bulgrien

This message and/or attachments may include information subject to GD Corporate Policy 07-105 and is intended to be accessed only by authorized personnel of General Dynamics and approved service providers.  Use, storage and transmission are governed by General Dynamics and its policies. Contractual restrictions apply to third parties.  Recipients should refer to the policies or contract to determine proper handling.  Unauthorized review, use, disclosure or distribution is prohibited.  If you are not an intended recipient, please contact the sender and destroy all copies of the original message.



More information about the bazaar mailing list