install mercurial puppy linux wary511
02 January 2012 [ View Code Close ]
Python+-2.6.4-i486.pet
mercurial
click install
| deb | http://packages.debian.org/lenny/i386/mercurial/download |
|---|
extract to /usr/lib/python2.6/mercurial-1.0.1/
| tar.gz | http://ftp.de.debian.org/debian/pool/main/m/mercurial/mercurial_1.0.1.orig.tar.gz |
|---|
python path
export PYTHONPATH='/usr/lib/python2.6/mercurial-1.0.1:/usr/lib/python2.6/site-packages/'
# hg Mercurial Distributed SCM basic commands: add add the specified files on the next commit annotate show changeset information per file line clone make a copy of an existing repository commit commit the specified files or all outstanding changes diff diff repository (or selected files) export dump the header and diffs for one or more changesets init create a new repository in the given directory log show revision history of entire repository or files merge merge working directory with another revision parents show the parents of the working dir or revision pull pull changes from the specified source push push changes to the specified destination remove remove the specified files on the next commit serve export the repository via HTTP status show changed files in the working directory update update working directory use "hg help" for the full list of commands or "hg -v" for details
ok.
without pythonpath
# hg version Traceback (most recent call last): File "/usr/bin/hg", line 11, in <module> from mercurial import demandimport; demandimport.enable() ImportError: No module named mercurial
detaiils
# env HOSTNAME=puppypc XDG_DATA_HOME=/root/.local/share TERM=xterm SHELL=/bin/bash HISTSIZE=1000 QT_XFT=true DEFAULTDRAW=inkscapelite OLDPWD=/usr/lib/python2.6/distutils QTDIR=/usr/lib/qt-3.3 QTINC=/usr/lib/qt-3.3/include MOZILLA_FIVE_HOME=/usr/lib/seamonkey XLIB_SKIP_ARGB_VISUALS=1 HISTFILESIZE=2000 USER=root LD_LIBRARY_PATH=/lib:/usr/lib:/usr/X11R7/lib:/root/my-applications/lib:/usr/local/lib:/opt/qt4/lib:/usr/lib/seamonkey GDK_USE_XFT=1 RGBDEF=/usr/share/X11/rgb.txt OOO_FORCE_DESKTOP=gnome DEFAULTIMAGEVIEWER=viewnior DEFAULTPAINT=mtpaint MOZ_DISABLE_PANGO=1 MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins:/usr/lib/seamonkey/plugins XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg DEFAULTBROWSER=mozstart PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R7/bin:/root/my-applications/bin:/opt/qt4/bin:/mnt/sda3/jdk1.6.0_26/bin DEFAULTMEDIAPLAYER=mplayershell LC_COLLATE=en_US PWD=/usr/lib/python2.6/distutils/command INPUTRC=/etc/inputrc DEFAULTIMAGEEDITOR=mtpaint JAVA_HOME=/mnt/sda3/jdk1.6.0_26 XMODIFIERS=@im=SCIM EDITOR=mp LANG=en_US.UTF-8 TZ=Asia/Tokyo QT4DIR=/opt/qt4 PS1=# XFINANSDIR=/root/.xfinans HISTCONTROL=ignoredups DEFAULTHTMLEDITOR=mozedit DEFAULTSPREADSHEET=gnumeric HOME=/root SHLVL=3 XDG_CONFIG_HOME=/root/.config MAKE=make XDG_CACHE_HOME=/root/.cache PYTHONPATH=/usr/lib/python2.6/mercurial-1.0.1:/usr/lib/python2.6/site-packages/ LOGNAME=root G_FILENAME_ENCODING=@locale QTLIB=/usr/lib/qt-3.3/lib PREFIX=/usr XDG_DATA_DIRS=/usr/share:/usr/local/share:/usr/share WINDOWPATH=4 DISPLAY=:0 MM_RUNASROOT=1 DEFAULTWORDPROCESSOR=abiword.sh DEFAULTTEXTEDITOR=geany _=/usr/bin/env
.so
cp /usr/lib/python-support/mercurial/python2.5/mercurial/*.so /usr/lib/python2.6/mercurial-1.0.1/
# hg clone https://code.google.com/p/go/ /usr/lib/python2.6/mercurial-1.0.1/mercurial/demandimport.py:46: DeprecationWarning: the sha module is deprecated; use the hashlib module instead mod = _origimport(head, globals, locals) requesting all changes adding changesets adding manifests adding file changes added 9442 changesets with 35451 changes to 4807 files updating working directory .hgtags@6eb2b9dbe489, line 63: tag 'release.r57' refers to unknown node .hgtags@6eb2b9dbe489, line 64: tag 'release.r57.1' refers to unknown node .hgtags@6eb2b9dbe489, line 68: tag 'release.r57.2' refers to unknown node .hgtags@6eb2b9dbe489, line 71: tag 'release.r58' refers to unknown node .hgtags@6eb2b9dbe489, line 73: tag 'release.r58.1' refers to unknown node .hgtags@6eb2b9dbe489, line 76: tag 'release.r59' refers to unknown node .hgtags@6eb2b9dbe489, line 77: tag 'release' refers to unknown node 2980 files updated, 0 files merged, 0 files removed, 0 files unresolved
ok.
without copy .so
# hg clone https://code.google.com/p/go/ /root/go/usr/lib/python2.6/mercurial-1.0.1/mercurial/demandimport.py:46: DeprecationWarning: the sha module is deprecated; use the hashlib module instead mod = _origimport(head, globals, locals) requesting all changes adding changesets transaction abort! rollback completed abort: could not import module mpatch! (did you forget to compile extensions?)
Loading