Merge lp:~ian-clatworthy/bzr-builder/fix-find-branches into lp:~james-w/bzr-builder/trunk-old

Proposed by Ian Clatworthy
Status: Work in progress
Proposed branch: lp:~ian-clatworthy/bzr-builder/fix-find-branches
Merge into: lp:~james-w/bzr-builder/trunk-old
Diff against target: 22 lines (+0/-8)
1 file modified
__init__.py (+0/-8)
To merge this branch: bzr merge lp:~ian-clatworthy/bzr-builder/fix-find-branches
Reviewer Review Type Date Requested Status
James Westby Needs Resubmitting
Review via email: mp+15137@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

This patch deletes the recursive symlink under plugins/builder. It causes pain and isn't needed. See the commit message for details.

Revision history for this message
James Westby (james-w) wrote :

Hi,

I have no problem with the symlink going away. However, I use
the code in the __init__.py in a pre_commit hook to test the
changes, and I don't want to use that.

After several times of trying to get this right this is the best
current approach, but clearly isn't there yet. Some way in bzr
to tell it to load a plugin from a particular directory with a
known name would allow us to avoid all of this.

Thanks,

James

review: Needs Resubmitting
Revision history for this message
Robert Collins (lifeless) wrote :

James, it would be nice if you could change the review status to 'in development' or some such when giving a review like this, otherwise it stays in the 'to review' list.

Also, please consider assigning ~bzr as a reviewer for the branch so that the whole team can help you out.

Unmerged revisions

55. By Ian Clatworthy

Delete the recursive symlink as it breaks anything relying on repo.find_branches(). For example, "bzr multi-pull" in my plugins directory goes into an endless loop because of this. Also, you can get easy testing via something like "bzr selftest bp.builder" IIUIC.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '__init__.py'
--- __init__.py 2009-10-23 13:14:30 +0000
+++ __init__.py 2009-11-23 01:45:21 +0000
@@ -114,14 +114,6 @@
114 0.2 - added "run" instruction.114 0.2 - added "run" instruction.
115"""115"""
116116
117if __name__ == '__main__':
118 import os
119 import subprocess
120 import sys
121 dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "plugins")
122 retcode = subprocess.call("bzr selftest -s bzrlib.plugins.builder",
123 shell=True, env={"BZR_PLUGIN_PATH": dir})
124 sys.exit(retcode)
125117
126import datetime118import datetime
127from email import utils119from email import utils
128120
=== removed directory 'plugins'
=== removed symlink 'plugins/builder'
=== target was '..'

Subscribers

People subscribed via source and target branches