How to push the code changes to review.source.android.com

by Feng Chris » Fri, 03 Dec 2010 22:50:30 GMT


Sponsored Links
 Hi all,

I try to push my changes to eview.source.android.com as method described in
site  http://source.android.com/source/submit-patches.html. 
But when I do "repo upload", error occurred.

Is anyone know something about this?

Or is anyone can provide a details about how to push the code changes to
review.source.android.com?

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
bash$repo upload
Upload project cts/:
  branch IKSTABLETWOV-1853_CTS ( 1 commit, Wed Nov 24 17:49:09 2010 +0800):
         ab4b8b7e Test
to review.source.android.com (y/n)? y
Traceback (most recent call last):
  File "/localrepo/hpqg67/Android/platform/.repo/repo/main.py", line 235, in
?
    _Main(sys.argv[1:])
  File "/localrepo/hpqg67/Android/platform/.repo/repo/main.py", line 217, in
_Main
    repo._Run(argv)
  File "/localrepo/hpqg67/Android/platform/.repo/repo/main.py", line 123, in
_Run
    cmd.Execute(copts, cargs)
  File "/localrepo/hpqg67/Android/platform/.repo/repo/subcmds/upload.py",
line 402, in Execute
    self._SingleBranch(opt, pending[0][1][0], people)
  File "/localrepo/hpqg67/Android/platform/.repo/repo/subcmds/upload.py",
line 165, in _SingleBranch
    self._UploadAndReport(opt, [branch], people)
  File "/localrepo/hpqg67/Android/platform/.repo/repo/subcmds/upload.py",
line 346, in _UploadAndReport
    branch.UploadForReview(people, auto_topic=opt.auto_topic)
  File "/localrepo/hpqg67/Android/platform/.repo/repo/project.py", line 156,
in UploadForReview
    auto_topic=auto_topic)
  File "/localrepo/hpqg67/Android/platform/.repo/repo/project.py", line 584,
in UploadForReview
    if branch.remote.ReviewProtocol == 'ssh':
  File "/localrepo/hpqg67/Android/platform/.repo/repo/git_config.py", line
505, in ReviewProtocol
    info = urlopen(u).read()
  File "/apps/android/python/lib/python2.4/urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "/apps/android/python/lib/python2.4/urllib2.py", line 358, in open
    response = self._open(req, data)
  File "/apps/android/python/lib/python2.4/urllib2.py", line 376, in _open
    '_open', req)
  File "/apps/android/python/lib/python2.4/urllib2.py", line 337, in
_call_chain
    result = func(*args)
  File "/apps/android/python/lib/python2.4/urllib2.py", line 1021, in
http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/apps/android/python/lib/python2.4/urllib2.py", line 996, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error (-2, 'Name or service not known')>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


Thanks,
Chris

-- 



Other Threads

1. getFirstVisiblePosition() not returning the correct value

1. I took the advice of others on this list and changed my drawing
code so that if the number of items in the ListView has not changed,
instead of calling ArrayAdapter.notifyDataSetChanged(), I instead
iterate over the ListView visible children and attempt to update them
manually.


                int firstVisibleDataSetPosition =
listView.getFirstVisiblePosition();
                for(int dataSetPosition = firstVisibleDataSetPosition;
dataSetPosition <=  listView.getLastVisiblePosition(); dataSetPosition+
+) {
                    View view =  listView.getChildAt(dataSetPosition -
firstVisibleDataSetPosition);
                    updateView(view, dataSetPosition);
                }


2. In certain cases, my data set holds one object.  Sometimes when
this happens, listView.getFirstVisiblePosition is returning "1", when
instead it should return 0, because the data set has only one object.
If I then attempt to retrieve the data item at index 1 using
ArrayAdapter.getItem(), I get an IndexOutOfBoundsException.

It seems to me getFirstVisiblePosition() cannot be used reliably if it
stands the chance of returning an invalid value.  Is this variable not
updated in certain cases, where it can get out of sync with the data
set?

- Eric

-- 

2. xliff:g and "Multiple substitutions specified in non-positional format" error.

I've found if you tag substitutions in string resource with xliff:g, aapt 
won't throw above error. First, I thought aapt automatically position 
substitutions using xliff:g ids, e.g.:

res/values/strings.xml: <string name="foo"><xliff:g id="bar">%d</xliff:g> 
<xliff:g id="baz">%d</xliff:g></string>
res/values-en/strings.xml: <string name="foo"><xliff:g id="baz">%d</xliff:g> 
<xliff:g id="bar">%d</xliff:g></string>

become:

res/values/strings.xml: <string name="foo">%1$d %2$d</string>
res/values-en/strings.xml: <string name="foo">%2$d %1$d</string>

, but this isn't true.

So why aapt ignores multiple non-positional substitutions in such case? Is 
it a bug?

-- 

3. obtaining true dimensions of a View larger than the screen

4. Is there a way to include permissions only during Testing?

5. HorizontalScrollView automatically scrolling

6. Help needed ijn analysing Kernel panic in Android

7. store image from my application to some internal device storage