How to push the code changes to

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

Sponsored Links
 Hi all,

I try to push my changes to as method described in
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

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



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

                int firstVisibleDataSetPosition =
                for(int dataSetPosition = firstVisibleDataSetPosition;
dataSetPosition <=  listView.getLastVisiblePosition(); dataSetPosition+
+) {
                    View view =  listView.getChildAt(dataSetPosition -
                    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

- 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>


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