Robert Collins wrote:
> On Thu, 2009-04-23 at 22:20 +0000, Rick McBride wrote:
>> when I try that script on an affected branch, I get
>>
>> Traceback (most recent call last):
>> File "/home/rmcbride/foo.py", line 3, in <module>
>> b = bzrlib.branch.Branch.open(argv[1])
>> NameError: name 'argv' is not defined
>>
>>
>> I'm guessing there's a parameter I should be passing
>
> New version that should fix that.
>
> And yes, run as
> python foo.py lp:BRANCHONLP
>
>
> ** Attachment added: "foo.py"
> http://launchpadlibrarian.net/25904342/foo.py
>
Traceback (most recent call last):
File "/home/rmcbride/foo.py", line 4, in <module>
b = bzrlib.branch.Branch.open(sys.argv[1])
IndexError: list index out of range
Robert Collins wrote: rmcbride/ foo.py" , line 3, in <module> branch. Branch. open(argv[ 1]) launchpadlibrar ian.net/ 25904342/ foo.py
> On Thu, 2009-04-23 at 22:20 +0000, Rick McBride wrote:
>> when I try that script on an affected branch, I get
>>
>> Traceback (most recent call last):
>> File "/home/
>> b = bzrlib.
>> NameError: name 'argv' is not defined
>>
>>
>> I'm guessing there's a parameter I should be passing
>
> New version that should fix that.
>
> And yes, run as
> python foo.py lp:BRANCHONLP
>
>
> ** Attachment added: "foo.py"
> http://
>
When I do that strangiato: ~/canonical/ ubunet/ homepage- teh-client- pkg$ python foo.py lp:~rmcbride/ubunet/homepage-teh-client-pkg)
(rmcbride@
/home/rmcbride/
I get
bzrlib. errors. NotBranchError: Not a branch: rmcbride/ canonical/ ubunet/ homepage- teh-client- pkg/lp:~rmcbride/ubunet/homepage-teh-client-pkg/".
"/home/
When I leave it out I now get
Traceback (most recent call last): rmcbride/ foo.py" , line 4, in <module> branch. Branch. open(sys. argv[1] )
File "/home/
b = bzrlib.
IndexError: list index out of range