# HG changeset patch # User Thomas Arendsen Hein # Date 1182410749 -7200 # Node ID 7a7d4937272baf90af6f00bc47807a9172279583 # Parent 17f5d2069551ee62d2b0616ce3451a5f84e746f1 Kill trailing spaces diff -r 17f5d2069551 -r 7a7d4937272b hgeditor --- a/hgeditor Thu Jun 21 00:34:14 2007 -0300 +++ b/hgeditor Thu Jun 21 09:25:49 2007 +0200 @@ -42,7 +42,7 @@ cat "$1" > "$HGTMP/msg" MD5=$(which md5sum 2>/dev/null) || \ - MD5=$(which md5 2>/dev/null) + MD5=$(which md5 2>/dev/null) [ -x "${MD5}" ] && CHECKSUM=`${MD5} "$HGTMP/msg"` if [ -s "$HGTMP/diff" ]; then $EDITOR "$HGTMP/msg" "$HGTMP/diff" || exit $? diff -r 17f5d2069551 -r 7a7d4937272b mercurial/commands.py --- a/mercurial/commands.py Thu Jun 21 00:34:14 2007 -0300 +++ b/mercurial/commands.py Thu Jun 21 09:25:49 2007 +0200 @@ -2515,7 +2515,7 @@ rev_ = opts['rev'] message = opts['message'] if opts['remove']: - if not name in repo.tags(): + if not name in repo.tags(): raise util.Abort(_('tag %s does not exist') % name) rev_ = nullid if not message: diff -r 17f5d2069551 -r 7a7d4937272b mercurial/patch.py --- a/mercurial/patch.py Thu Jun 21 00:34:14 2007 -0300 +++ b/mercurial/patch.py Thu Jun 21 09:25:49 2007 +0200 @@ -303,7 +303,7 @@ # Try to be smart only if patch call was not supplied if util.needbinarypatch(): args.append('--binary') - + if not patcher: raise util.Abort(_('no patch command found in hgrc or PATH')) diff -r 17f5d2069551 -r 7a7d4937272b templates/gitweb/map --- a/templates/gitweb/map Thu Jun 21 00:34:14 2007 -0300 +++ b/templates/gitweb/map Thu Jun 21 09:25:49 2007 +0200 @@ -51,7 +51,7 @@ shortlogentry = '#date|age# ago#author##desc|strip|firstline|escape# {branches%branchtag}{tags%tagtag}changeset | manifest' filelogentry = '#date|age# ago#desc|strip|firstline|escape#file | diff | annotate #rename%filelogrename#' archiveentry = ' | #type|escape# ' -indexentry = '#name|escape##description##contact|obfuscate##lastchange|age# ago #archives%archiveentry#' +indexentry = '#name|escape##description##contact|obfuscate##lastchange|age# ago #archives%archiveentry#' index = index.tmpl urlparameter = '#separator##name#=#value|urlescape#' hiddenformentry = '' diff -r 17f5d2069551 -r 7a7d4937272b templates/static/style.css --- a/templates/static/style.css Thu Jun 21 00:34:14 2007 -0300 +++ b/templates/static/style.css Thu Jun 21 09:25:49 2007 +0200 @@ -3,7 +3,7 @@ .indexlinks { white-space:nowrap; } .parity0 { background-color: #dddddd; } .parity1 { background-color: #eeeeee; } -.lineno { width: 60px; color: #aaaaaa; font-size: smaller; +.lineno { width: 60px; color: #aaaaaa; font-size: smaller; text-align: right; padding-right:1em; } .plusline { color: green; } .minusline { color: red; } @@ -46,7 +46,7 @@ .logo a { font-weight: bold; - font-size: 150%; + font-size: 150%; color: #999; } diff -r 17f5d2069551 -r 7a7d4937272b tests/printenv.py --- a/tests/printenv.py Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/printenv.py Thu Jun 21 09:25:49 2007 +0200 @@ -27,7 +27,7 @@ # variables with empty values may not exist on all platforms, filter # them now for portability sake. -env = [k for k,v in os.environ.iteritems() +env = [k for k, v in os.environ.iteritems() if k.startswith("HG_") and v] env.sort() diff -r 17f5d2069551 -r 7a7d4937272b tests/test-annotate --- a/tests/test-annotate Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-annotate Thu Jun 21 09:25:49 2007 +0200 @@ -78,7 +78,7 @@ hg annotate -r tip a # test issue 589 -# annotate was crashing when trying to --follow something +# annotate was crashing when trying to --follow something # like A -> B -> A echo % generate ABA rename configuration echo foo > foo diff -r 17f5d2069551 -r 7a7d4937272b tests/test-dispatch --- a/tests/test-dispatch Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-dispatch Thu Jun 21 09:25:49 2007 +0200 @@ -22,4 +22,4 @@ hg cat exit 0 - \ No newline at end of file + diff -r 17f5d2069551 -r 7a7d4937272b tests/test-empty-file --- a/tests/test-empty-file Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-empty-file Thu Jun 21 09:25:49 2007 +0200 @@ -18,7 +18,7 @@ hg heads hg merge 1 -# before changeset 05257fd28591, we didn't notice the +# before changeset 05257fd28591, we didn't notice the # empty file that came from rev 1. hg status hg commit -m merge -d '1000000 0' diff -r 17f5d2069551 -r 7a7d4937272b tests/test-empty-group --- a/tests/test-empty-group Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-empty-group Thu Jun 21 09:25:49 2007 +0200 @@ -1,12 +1,12 @@ #!/bin/sh # -# A B -# -# 3 4 3 -# |\/| |\ -# |/\| | \ -# 1 2 1 2 -# \ / \ / +# A B +# +# 3 4 3 +# |\/| |\ +# |/\| | \ +# 1 2 1 2 +# \ / \ / # 0 0 # # if the result of the merge of 1 and 2 diff -r 17f5d2069551 -r 7a7d4937272b tests/test-hgrc --- a/tests/test-hgrc Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-hgrc Thu Jun 21 09:25:49 2007 +0200 @@ -4,4 +4,4 @@ cd t hg init echo "invalid" > .hg/hgrc -hg status 2>&1 |sed -e "s:/.*\(/t/.*\):...\1:" +hg status 2>&1 |sed -e "s:/.*\(/t/.*\):...\1:" diff -r 17f5d2069551 -r 7a7d4937272b tests/test-hook --- a/tests/test-hook Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-hook Thu Jun 21 09:25:49 2007 +0200 @@ -40,7 +40,7 @@ # test generic hooks hg id -hg cat b +hg cat b cd ../b hg pull ../a diff -r 17f5d2069551 -r 7a7d4937272b tests/test-issue322 --- a/tests/test-issue322 Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-issue322 Thu Jun 21 09:25:49 2007 +0200 @@ -4,17 +4,17 @@ echo % file replaced with directory hg init a -cd a -echo a > a -hg commit -Ama -rm a -mkdir a +cd a +echo a > a +hg commit -Ama +rm a +mkdir a echo a > a/a echo % should fail - would corrupt dirstate hg add a/a -cd .. +cd .. echo % directory replaced with file diff -r 17f5d2069551 -r 7a7d4937272b tests/test-issue433 --- a/tests/test-issue433 Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-issue433 Thu Jun 21 09:25:49 2007 +0200 @@ -2,9 +2,9 @@ # http://www.selenic.com/mercurial/bts/issue433 hg init a -cd a -echo a > a -hg commit -Ama +cd a +echo a > a +hg commit -Ama hg parents -r 0 doesnotexist true diff -r 17f5d2069551 -r 7a7d4937272b tests/test-mq-qrefresh-replace-log-message --- a/tests/test-mq-qrefresh-replace-log-message Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-mq-qrefresh-replace-log-message Thu Jun 21 09:25:49 2007 +0200 @@ -19,7 +19,7 @@ # Testing changing message with -m echo bbbb > file -hg qrefresh -m "Second commit message" +hg qrefresh -m "Second commit message" echo ======================= echo "Should display 'Second commit message'" hg log -l1 -v | sed -n '/description/,$p' @@ -41,7 +41,7 @@ echo aaaa > file2 hg add file2 echo bbbb > file2 -(echo "Fifth commit message" +(echo "Fifth commit message" echo " This is the 5th log message" >> logfile) |\ hg qrefresh -l- echo ======================= diff -r 17f5d2069551 -r 7a7d4937272b tests/test-rename-merge2 --- a/tests/test-rename-merge2 Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-rename-merge2 Thu Jun 21 09:25:49 2007 +0200 @@ -12,7 +12,7 @@ HGMERGE="python ../merge"; export HGMERGE # perform a test merge with possible renaming -# +# # args: # $1 = action in local branch # $2 = action in remote branch @@ -57,7 +57,7 @@ hg status -camC -X rev hg ci -m "merge" -d "0 0" - + echo "--------------" echo @@ -65,10 +65,10 @@ rm -r t } -up() { +up() { cp rev $1 hg add $1 2> /dev/null - if [ "$2" != "" ] ; then + if [ "$2" != "" ] ; then cp rev $2 hg add $2 2> /dev/null fi @@ -95,7 +95,7 @@ tm "nc a b" "up a b" " " "14 merge b no ancestor" tm "up b " "nm a b" " " "15 merge b no ancestor, remove a" tm "nc a b" "up a b" " " "16 get a, merge b no ancestor" -tm "up a b" "nc a b" " " "17 keep a, merge b no ancestor" +tm "up a b" "nc a b" " " "17 keep a, merge b no ancestor" tm "nm a b" "up a b" " " "18 merge b no ancestor" tm "up a b" "nm a b" " " "19 merge b no ancestor, prompt remove a" tm "up a " "um a b" " " "20 merge a and b to b, remove a" diff -r 17f5d2069551 -r 7a7d4937272b tests/test-tags --- a/tests/test-tags Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-tags Thu Jun 21 09:25:49 2007 +0200 @@ -81,7 +81,7 @@ hg tags # test tag removal -hg tag --remove -d '1000000 0' bar +hg tag --remove -d '1000000 0' bar hg tip hg tags diff -r 17f5d2069551 -r 7a7d4937272b tests/test-up-local-change --- a/tests/test-up-local-change Thu Jun 21 00:34:14 2007 -0300 +++ b/tests/test-up-local-change Thu Jun 21 09:25:49 2007 +0200 @@ -63,6 +63,6 @@ echo a > b/a hg --cwd a commit -A -m a cd b -hg add a +hg add a hg pull -u ../a hg st