[issue3053] finally: SyntaxError

tomba bugs at mercurial.selenic.com
Mon Oct 17 12:59:58 CDT 2011


New submission from tomba <1ipsfgq02 at sneakemail.com>:

I have updated my hg-stable repository from 1.9.2 to 2.0-rc, and tried to build:

$ make all
python setup.py  build
running build
running build_mo
generating mercurial/locale/ja/LC_MESSAGES/hg.mo from i18n/ja.po
msgfmt -v -o mercurial/locale/ja/LC_MESSAGES/hg.mo i18n/ja.po -c
2713 translated messages, 908 untranslated messages.
running build_py
copying mercurial/sslutil.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/sshserver.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/i18n.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/minirst.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/scmutil.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/simplemerge.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/localrepo.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/httprepo.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/dispatch.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/windows.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/revset.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/revlog.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/wireproto.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/templatekw.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/keepalive.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/subrepo.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/filemerge.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/fancyopts.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/ui.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/url.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/demandimport.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/cmdutil.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/bundlerepo.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/bookmarks.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/tags.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/archival.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/help.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/store.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/mdiff.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/encoding.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/statichttprepo.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/lsprof.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/hbisect.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/commandserver.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/hg.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/util.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/mail.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/merge.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/dirstate.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/byterange.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/setdiscovery.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/extensions.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/repair.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/match.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/httpconnection.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/hook.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/error.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/posix.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/templater.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/patch.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/templatefilters.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/verify.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/commands.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/sshrepo.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/win32.py -> build/lib.linux-x86_64-2.4/mercurial
copying mercurial/hgweb/request.py -> build/lib.linux-x86_64-2.4/mercurial/hgweb
copying mercurial/hgweb/hgwebdir_mod.py ->
build/lib.linux-x86_64-2.4/mercurial/hgweb
copying mercurial/hgweb/protocol.py ->
build/lib.linux-x86_64-2.4/mercurial/hgweb
copying mercurial/hgweb/webutil.py -> build/lib.linux-x86_64-2.4/mercurial/hgweb
copying mercurial/hgweb/server.py -> build/lib.linux-x86_64-2.4/mercurial/hgweb
copying mercurial/hgweb/hgweb_mod.py ->
build/lib.linux-x86_64-2.4/mercurial/hgweb
copying mercurial/hgweb/wsgicgi.py -> build/lib.linux-x86_64-2.4/mercurial/hgweb
copying mercurial/httpclient/__init__.py ->
build/lib.linux-x86_64-2.4/mercurial/httpclient
copying mercurial/httpclient/tests/test_chunked_transfer.py ->
build/lib.linux-x86_64-2.4/mercurial/httpclient/tests
copying mercurial/httpclient/tests/simple_http_test.py ->
build/lib.linux-x86_64-2.4/mercurial/httpclient/tests
copying hgext/mq.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/notify.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/progress.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/color.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/pager.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/keyword.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/eol.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/rebase.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/share.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/relink.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/record.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/transplant.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/acl.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/patchbomb.py -> build/lib.linux-x86_64-2.4/hgext
copying hgext/convert/git.py -> build/lib.linux-x86_64-2.4/hgext/convert
copying hgext/convert/transport.py -> build/lib.linux-x86_64-2.4/hgext/convert
copying hgext/convert/cvsps.py -> build/lib.linux-x86_64-2.4/hgext/convert
copying hgext/convert/filemap.py -> build/lib.linux-x86_64-2.4/hgext/convert
copying hgext/convert/subversion.py -> build/lib.linux-x86_64-2.4/hgext/convert
copying hgext/convert/hg.py -> build/lib.linux-x86_64-2.4/hgext/convert
creating build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/proto.py -> build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/lfcommands.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/basestore.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/wirestore.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/uisetup.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/lfutil.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/overrides.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/__init__.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/remotestore.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/localstore.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/largefiles/reposetup.py ->
build/lib.linux-x86_64-2.4/hgext/largefiles
copying hgext/inotify/__init__.py -> build/lib.linux-x86_64-2.4/hgext/inotify
copying hgext/inotify/server.py -> build/lib.linux-x86_64-2.4/hgext/inotify
copying mercurial/locale/ja/LC_MESSAGES/hg.mo ->
build/lib.linux-x86_64-2.4/mercurial/locale/ja/LC_MESSAGES
copying mercurial/help/config.txt -> build/lib.linux-x86_64-2.4/mercurial/help
copying mercurial/help/subrepos.txt -> build/lib.linux-x86_64-2.4/mercurial/help
copying mercurial/templates/map-cmdline.bisect ->
build/lib.linux-x86_64-2.4/mercurial/templates
copying mercurial/templates/spartan/footer.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/spartan
copying mercurial/templates/paper/filelog.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/manifest.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/index.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/filerevision.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/search.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/graph.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/shortlog.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/bookmarks.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/changeset.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/tags.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/error.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/help.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/fileannotate.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/helptopics.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/filediff.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/paper/branches.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/paper
copying mercurial/templates/monoblue/index.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/monoblue
copying mercurial/templates/monoblue/footer.tmpl ->
build/lib.linux-x86_64-2.4/mercurial/templates/monoblue
running build_ext
building 'mercurial.bdiff' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC
-I/usr/include/python2.4 -c mercurial/bdiff.c -o
build/temp.linux-x86_64-2.4/mercurial/bdiff.o
gcc -pthread -shared build/temp.linux-x86_64-2.4/mercurial/bdiff.o -o
build/lib.linux-x86_64-2.4/mercurial/bdiff.so
building 'mercurial.osutil' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC
-I/usr/include/python2.4 -c mercurial/osutil.c -o
build/temp.linux-x86_64-2.4/mercurial/osutil.o
gcc -pthread -shared build/temp.linux-x86_64-2.4/mercurial/osutil.o -o
build/lib.linux-x86_64-2.4/mercurial/osutil.so
running build_scripts
make -C doc
make[1]: Entering directory `/work/tomba/repos/mercurial/hg-stable/doc'
python gendoc.py > hg.1.gendoc.txt.tmp
Traceback (most recent call last):
  File "gendoc.py", line 8, in ?
    from mercurial.commands import table, globalopts
  File "/work/tomba/repos/mercurial/hg-stable/mercurial/demandimport.py",
line 114, in _demandimport
    mod = _origimport(name, globals, locals)
  File "../mercurial/commands.py", line 3583
    finally:
          ^
SyntaxError: invalid syntax
make[1]: *** [hg.1.gendoc.txt] Error 1
make[1]: Leaving directory `/work/tomba/repos/mercurial/hg-stable/doc'
make: *** [doc] Error 2

----------
messages: 17667
nosy: tomba
priority: bug
status: unread
title: finally: SyntaxError

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3053>
____________________________________________________


More information about the Mercurial-devel mailing list