Thanks for getting back to me :)

Is just running rbt with -d enough or do I need something more? The log of
`rbt post -d ...` is below.

Note: Everything uploads fine, but then the tools crashes.



note: I've edited:

C:\work\env\python\Python27\Lib\site-packages\rbtools\api\resource.py
 line 284
-            raise AttributeError
+            raise AttributeError(str(name))

as I wanted to see which item in the tuple was the problem.

I can make the problem "go away" if I change

C:\work\env\python\Python27\Lib\site-packages\rbtools\commands\post.py
 line 606
-        return review_request.id, review_request.absolute_url
 +        return review_request.id, "lol/"


Obviously the browser then tries to open http://lol/diff, which is no real
problem, and at least it doesn't crash :)

Thanks,
Lee


rbt post --username=lee.griffiths --server http://<rb server>/rbsite/ -d
 -o --repository-type=perforce 2876535

>>> RBTools 0.6
>>> Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit
(Intel)]
>>> Running on Windows-7-6.1.7601-SP1
>>> Home = C:\Users\lee.griffiths\AppData\Roaming
>>> Current directory = <valid local path>
>>> Checking for a Perforce repository...
>>> Running: p4 info
>>> Running: diff --version
>>> repository info: Path: ['<p4 repo>:1666', '<p4
repo.fully.qualified>:1666'], Base path: None, Supports changesets: True
>>> Making HTTP GET request to http://<rb server>/rbsite/api/

==> HTTP Authentication Required
Enter authorization information for "Web API" at <rb server>
Password:
>>> Making HTTP GET request to http://<rb server>/rbsite/api/info/
Generating diff for pending changeset 2876535
>>> Processing edit of <p4 path to file>.c
>>> Writing "<p4 path to file>.c#17" to
"c:\users\lee~1.gri\appdata\local\temp\tmp6dendt"
>>> Running: p4 print -o c:\users\lee~1.gri\appdata\local\temp\tmp6dendt -q
<p4 path to file>.c#17
>>> Running: diff -urNp c:\users\lee~1.gri\appdata\local\temp\tmp6dendt
<valid local path to file>.c
>>> Command exited with rc 1: ['diff', '-urNp',
'c:\\users\\lee~1.gri\\appdata\\local\\temp\\tmp6dendt', '<valid local path
to file>.c']

<valid diff goes here>

---
>>> Making HTTP GET request to http://<rb server>/rbsite/api/repositories/
>>> Making HTTP GET request to http://<rb
server>/rbsite/api/review-requests/
>>> Making HTTP POST request to http://<rb
server>/rbsite/api/review-requests/
>>> Making HTTP GET request to http://<rb
server>/rbsite/api/review-requests/1486/diffs/
>>> Making HTTP POST request to http://<rb
server>/rbsite/api/review-requests/1486/diffs/
>>> Making HTTP GET request to http://<rb
server>/rbsite/api/review-requests/1486/draft/
Traceback (most recent call last):
  File "C:\work\env\python\Python27\Scripts\rbt-script.py", line 9, in
<module>
    load_entry_point('RBTools==0.6', 'console_scripts', 'rbt')()
  File
"C:\work\env\python\Python27\lib\site-packages\rbtools\commands\main.py",
line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File
"C:\work\env\python\Python27\lib\site-packages\rbtools\commands\__init__.py",
line 422, in run_from_argv
    exit_code = self.main(*args) or 0
  File
"C:\work\env\python\Python27\lib\site-packages\rbtools\commands\post.py",
line 769, in main
    submit_as=self.options.submit_as)
  File
"C:\work\env\python\Python27\lib\site-packages\rbtools\commands\post.py",
line 606, in post_request
    return review_request.id, review_request.absolute_url
  File
"C:\work\env\python\Python27\lib\site-packages\rbtools\api\resource.py",
line 284, in __getattr__
    raise AttributeError(str(name))
AttributeError: absolute_url

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to