Log in
پنج شنبه,۰۷ مرداد ماه ۱۳۸۹مطابق با
١٦ شعبان ۱۴۳۱هجرى قمرى

1st
FEB
Mercurial & hg view
Posted by admin under Linux
Install on Ubuntu and Debian: sudo apt-get install mercurial
hg view How?
You try the ‘hg view’ command and you will get an error:
sudo apt-get install mercurial
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install -U mercurial
wget http://www.selenic.com/mercurial/release/mercurial-1.0.tar.gz
tar zxvf mercurial-1.0.tar.gz
cp mercurial-1.0/contrib/hgk /usr/bin
sudo apt-get install tk8.5
put the following in your $HOME/.hgrc
[extensions]
hgk=/usr/local/lib/python2.6/dist-packages/mercurial-1.5.1-py2.6-linux-i686.egg/hgext/hgk.py
[hgk]
path=/your home/bin/hgk
Some Useful Commands:
The actual version information: hg version
Create a new repository in the given directory: hg help init
hg init [-e CMD] [--remotecmd CMD] [DEST]
Making a local copy of a repository: hg clone <directory>
Through history: hg log or glog
Viewing specific revisions use the -r (or --rev) option
hg log -r 024584ws345
hg log -r q272e0d5w32 -r 0272e0d5w324
More detailed information add -v (or --verbose) option
To see content of a change add the -p (or --patch) option
To display the change set: hg tip -vp
pull the changes: hg in, hg pull
update the working copy: hg up
merging the changes
incoming change: hg in -v
outgoing change: hg out -v
hg merge -r default (tip)
The life of a patch
# create a new patch
hg qnew -f <file-name>
hg qser
# remove the top patch
hg qpop
# Apply the patch again
hg qpush
# Unapply all patches
hg qpop -a
# Apply all patches
hg qpush -a
hg qpop -n <patch name>hg qpush -n <patch name>
# remove patch
hg qrm <patch name>
hg qrefresh -U -e
Merge the changes from “patch2″ into “patch1”
hg qgoto patch1; hg qfold patch2;
Post your comment
Archives:
- Mercurial & hg view
- jPortal wordpress theme
- WordPress Careers plugin
- Check For Email pattern
- WordPress ODLinks Plugin
- WordPress Classifieds Plugin
- Clean up the Ubuntu
- Persian philosophs and sciences
Categories:
Linux Category
Links
- (IE)HTML - اديتور به فارسي و لاتين
- Online Graphic Plotter
- Online scientific calculator
- تقويم ساليانه
- تبديل کُدهای رايج
- تبدیل تاریخ شمسی به میلادی
- فارسی نويس
- تبديل خط فينگليش به فارسى
Local times
- CEST: 2010-07-29 20:20
- EDT: 2010-07-29 14:20
- IRDT: 2010-07-29 22:50
- KST: 2010-07-30 03:20
- PDT: 2010-07-29 11:20





