##// END OF EJS Templates
Merge with stable
Martin Geisler -
r11886:73112cb2 merge default
parent child Browse files
Show More
@@ -46,6 +46,7 b' testpats = ['
46 (r'^function', "don't use 'function', use old style"),
46 (r'^function', "don't use 'function', use old style"),
47 (r'grep.*-q', "don't use 'grep -q', redirect to /dev/null"),
47 (r'grep.*-q', "don't use 'grep -q', redirect to /dev/null"),
48 (r'echo.*\\n', "don't use 'echo \\n', use printf"),
48 (r'echo.*\\n', "don't use 'echo \\n', use printf"),
49 (r'echo -n', "don't use 'echo -n', use printf"),
49 (r'^diff.*-\w*N', "don't use 'diff -N'"),
50 (r'^diff.*-\w*N', "don't use 'diff -N'"),
50 (r'(^| )wc[^|]*$', "filter wc output"),
51 (r'(^| )wc[^|]*$', "filter wc output"),
51 (r'head -c', "don't use 'head -c', use 'dd'"),
52 (r'head -c', "don't use 'head -c', use 'dd'"),
@@ -726,8 +726,10 b' def commit(ui, repo, *pats, **opts):'
726 If you are committing the result of a merge, do not provide any
726 If you are committing the result of a merge, do not provide any
727 filenames or -I/-X filters.
727 filenames or -I/-X filters.
728
728
729 If no commit message is specified, the configured editor is
729 If no commit message is specified, Mercurial starts your
730 started to prompt you for a message.
730 configured editor where you can enter a message. In case your
731 commit fails, you will find a backup of your message in
732 ``.hg/last-message.txt``.
731
733
732 See :hg:`help dates` for a list of formats valid for -d/--date.
734 See :hg:`help dates` for a list of formats valid for -d/--date.
733
735
@@ -874,7 +876,7 b' def debugbuilddag(ui, repo, text,'
874 - empty to denote the default parent.
876 - empty to denote the default parent.
875
877
876 All string valued-elements are either strictly alphanumeric, or must
878 All string valued-elements are either strictly alphanumeric, or must
877 be enclosed in double quotes ("..."), with "\" as escape character.
879 be enclosed in double quotes ("..."), with "\\" as escape character.
878
880
879 Note that the --overwritten-file and --appended-file options imply the
881 Note that the --overwritten-file and --appended-file options imply the
880 use of "HGMERGE=internal:local" during DAG buildup.
882 use of "HGMERGE=internal:local" during DAG buildup.
@@ -437,7 +437,7 b' def roots(repo, subset, x):'
437 def outgoing(repo, subset, x):
437 def outgoing(repo, subset, x):
438 import hg # avoid start-up nasties
438 import hg # avoid start-up nasties
439 l = getargs(x, 0, 1, _("outgoing wants a repository path"))
439 l = getargs(x, 0, 1, _("outgoing wants a repository path"))
440 dest = l[1:] or ''
440 dest = l and getstring(l[0], _("outgoing wants a repository path")) or ''
441 dest = repo.ui.expandpath(dest or 'default-push', dest or 'default')
441 dest = repo.ui.expandpath(dest or 'default-push', dest or 'default')
442 dest, branches = hg.parseurl(dest)
442 dest, branches = hg.parseurl(dest)
443 other = hg.repository(hg.remoteui(repo, {}), dest)
443 other = hg.repository(hg.remoteui(repo, {}), dest)
@@ -57,6 +57,11 b' hg ci -Aqm9'
57
57
58 hg tag -r6 1.0
58 hg tag -r6 1.0
59
59
60 hg clone --quiet -U -r 7 . ../remote1
61 hg clone --quiet -U -r 8 . ../remote2
62 echo "[paths]" >> .hg/hgrc
63 echo "default = ../remote1" >> .hg/hgrc
64
60 # names that should work without quoting
65 # names that should work without quoting
61 try a
66 try a
62 try b-a
67 try b-a
@@ -113,6 +118,9 b" log 'max(contains(a))'"
113 log 'min(contains(a))'
118 log 'min(contains(a))'
114 log 'merge()'
119 log 'merge()'
115 log 'modifies(b)'
120 log 'modifies(b)'
121 log 'outgoing()'
122 log 'outgoing("../remote1")'
123 log 'outgoing("../remote2")'
116 log 'p1(merge())'
124 log 'p1(merge())'
117 log 'p2(merge())'
125 log 'p2(merge())'
118 log 'parents(merge())'
126 log 'parents(merge())'
@@ -158,6 +158,18 b' 0'
158 6
158 6
159 % log 'modifies(b)'
159 % log 'modifies(b)'
160 4
160 4
161 % log 'outgoing()'
162 8
163 9
164 % log 'outgoing("../remote1")'
165 8
166 9
167 % log 'outgoing("../remote2")'
168 3
169 5
170 6
171 7
172 9
161 % log 'p1(merge())'
173 % log 'p1(merge())'
162 5
174 5
163 % log 'p2(merge())'
175 % log 'p2(merge())'
General Comments 0
You need to be logged in to leave comments. Login now