##// END OF EJS Templates
sync with -stable
Thomas Arendsen Hein -
r4016:a195f11e merge default
parent child Browse files
Show More
@@ -151,6 +151,22 b' defaults::'
151 151 defining command defaults. The command defaults will also be
152 152 applied to the aliases of the commands defined.
153 153
154 diff::
155 Settings used when displaying diffs. They are all boolean and
156 defaults to False.
157 git;;
158 Use git extended diff format.
159 nodates;;
160 Don't include dates in diff headers.
161 showfunc;;
162 Show which function each change is in.
163 ignorews;;
164 Ignore white space when comparing lines.
165 ignorewsamount;;
166 Ignore changes in the amount of white space.
167 ignoreblanklines;;
168 Ignore changes whose lines are all blank.
169
154 170 email::
155 171 Settings for extensions that send email messages.
156 172 from;;
@@ -698,7 +698,6 b' class queue:'
698 698 if saveheads:
699 699 backupch = repo.changegroupsubset(savebases.keys(), saveheads, 'strip')
700 700 chgrpfile = bundle(backupch)
701 chgrpfile = 'file:%s' % chgrpfile
702 701
703 702 stripall(revnum)
704 703
@@ -707,7 +706,8 b' class queue:'
707 706 repo.manifest.strip(repo.manifest.rev(change[0]), revnum)
708 707 if saveheads:
709 708 self.ui.status("adding branch\n")
710 commands.unbundle(self.ui, repo, chgrpfile, update=False)
709 commands.unbundle(self.ui, repo, "file:%s" % chgrpfile,
710 update=False)
711 711 if backup != "strip":
712 712 os.unlink(chgrpfile)
713 713
@@ -11,7 +11,7 b' from i18n import _'
11 11 import bisect, os, re, sys, signal, imp, urllib, pdb, shlex, stat
12 12 import fancyopts, ui, hg, util, lock, revlog, bundlerepo
13 13 import difflib, patch, time, help, mdiff, tempfile
14 import traceback, errno, version, atexit
14 import traceback, errno, version, atexit, socket
15 15 import archival, changegroup, cmdutil, hgweb.server, sshserver
16 16
17 17 class UnknownCommand(Exception):
@@ -1337,13 +1337,20 b' def help_(ui, name=None, with_version=Fa'
1337 1337 ui.write(d, '\n')
1338 1338
1339 1339 ui.status('\n')
1340
1341 try:
1342 ct = mod.cmdtable
1343 except AttributeError:
1344 ui.status(_('no commands defined\n'))
1345 return
1346
1340 1347 if ui.verbose:
1341 1348 ui.status(_('list of commands:\n\n'))
1342 1349 else:
1343 1350 ui.status(_('list of commands (use "hg help -v %s" '
1344 1351 'to show aliases and global options):\n\n') % name)
1345 1352
1346 modcmds = dict.fromkeys([c.split('|', 1)[0] for c in mod.cmdtable])
1353 modcmds = dict.fromkeys([c.split('|', 1)[0] for c in ct])
1347 1354 helplist(modcmds.has_key)
1348 1355
1349 1356 if name and name != 'shortlist':
@@ -1761,7 +1768,7 b' def manifest(ui, repo, rev=None):'
1761 1768 ui.write("%s\n" % f)
1762 1769
1763 1770 def merge(ui, repo, node=None, force=None):
1764 """Merge working directory with another revision
1771 """merge working directory with another revision
1765 1772
1766 1773 Merge the contents of the current working directory and the
1767 1774 requested revision. Files that changed between either parent are
@@ -2477,7 +2484,7 b' def unbundle(ui, repo, fname, **opts):'
2477 2484 return postincoming(ui, repo, modheads, opts['update'])
2478 2485
2479 2486 def update(ui, repo, node=None, clean=False, date=None):
2480 """update or merge working directory
2487 """update working directory
2481 2488
2482 2489 Update the working directory to the specified revision.
2483 2490
@@ -2489,7 +2496,7 b' def update(ui, repo, node=None, clean=Fa'
2489 2496 merge command.
2490 2497
2491 2498 By default, update will refuse to run if doing so would require
2492 merging or discarding local changes.
2499 discarding local changes.
2493 2500 """
2494 2501 if date:
2495 2502 if node:
@@ -2768,7 +2775,7 b' table = {'
2768 2775 ] + walkopts,
2769 2776 _('hg log [OPTION]... [FILE]')),
2770 2777 "manifest": (manifest, [], _('hg manifest [REV]')),
2771 "merge":
2778 "^merge":
2772 2779 (merge,
2773 2780 [('f', 'force', None, _('force a merge with outstanding changes'))],
2774 2781 _('hg merge [-f] [REV]')),
@@ -3230,11 +3237,17 b' def dispatch(args):'
3230 3237 u.warn(_("\nbroken pipe\n"))
3231 3238 else:
3232 3239 raise
3240 except socket.error, inst:
3241 u.warn(_("abort: %s\n") % inst[1])
3233 3242 except IOError, inst:
3234 3243 if hasattr(inst, "code"):
3235 3244 u.warn(_("abort: %s\n") % inst)
3236 3245 elif hasattr(inst, "reason"):
3237 u.warn(_("abort: error: %s\n") % inst.reason[1])
3246 try: # usually it is in the form (errno, strerror)
3247 reason = inst.reason.args[1]
3248 except: # it might be anything, for example a string
3249 reason = inst.reason
3250 u.warn(_("abort: error: %s\n") % reason)
3238 3251 elif hasattr(inst, "args") and inst[0] == errno.EPIPE:
3239 3252 if u.debugflag:
3240 3253 u.warn(_("broken pipe\n"))
@@ -6,7 +6,7 b''
6 6 # This software may be used and distributed according to the terms
7 7 # of the GNU General Public License, incorporated herein by reference.
8 8
9 import os, sys, errno, urllib, BaseHTTPServer, socket, SocketServer
9 import os, sys, errno, urllib, BaseHTTPServer, socket, SocketServer, traceback
10 10 from mercurial import ui, hg, util, templater
11 11 from hgweb_mod import hgweb
12 12 from hgwebdir_mod import hgwebdir
@@ -55,10 +55,17 b' class _hgwebhandler(object, BaseHTTPServ'
55 55
56 56 def do_POST(self):
57 57 try:
58 self.do_hgweb()
59 except socket.error, inst:
60 if inst[0] != errno.EPIPE:
61 raise
58 try:
59 self.do_hgweb()
60 except socket.error, inst:
61 if inst[0] != errno.EPIPE:
62 raise
63 except StandardError, inst:
64 self._start_response("500 Internal Server Error", [])
65 self._write("Internal Server Error")
66 tb = "".join(traceback.format_exception(*sys.exc_info()))
67 self.log_error("Exception happened during processing request '%s':\n%s",
68 self.path, tb)
62 69
63 70 def do_GET(self):
64 71 self.do_POST()
@@ -256,15 +256,19 b' class httprepository(remoterepository):'
256 256 proto = resp.headers['content-type']
257 257
258 258 # accept old "text/plain" and "application/hg-changegroup" for now
259 if not proto.startswith('application/mercurial') and \
259 if not proto.startswith('application/mercurial-') and \
260 260 not proto.startswith('text/plain') and \
261 261 not proto.startswith('application/hg-changegroup'):
262 262 raise hg.RepoError(_("'%s' does not appear to be an hg repository") %
263 263 self._url)
264 264
265 if proto.startswith('application/mercurial'):
266 version = proto[22:]
267 if float(version) > 0.1:
265 if proto.startswith('application/mercurial-'):
266 try:
267 version = float(proto[22:])
268 except ValueError:
269 raise hg.RepoError(_("'%s' sent a broken Content-type "
270 "header (%s)") % (self._url, proto))
271 if version > 0.1:
268 272 raise hg.RepoError(_("'%s' uses newer protocol %s") %
269 273 (self._url, version))
270 274
@@ -141,7 +141,7 b' list of commands (use "hg help -v" to sh'
141 141 locate locate files matching specific patterns
142 142 log show revision history of entire repository or files
143 143 manifest output the current or given revision of the project manifest
144 merge Merge working directory with another revision
144 merge merge working directory with another revision
145 145 outgoing show changesets not found in destination
146 146 parents show the parents of the working dir or revision
147 147 paths show definition of symbolic path names
@@ -160,7 +160,7 b' list of commands (use "hg help -v" to sh'
160 160 tags list repository tags
161 161 tip show the tip revision
162 162 unbundle apply a changegroup file
163 update update or merge working directory
163 update update working directory
164 164 verify verify the integrity of the repository
165 165 version output version and copyright information
166 166 Mercurial Distributed SCM
@@ -191,7 +191,7 b' list of commands (use "hg help -v" to sh'
191 191 locate locate files matching specific patterns
192 192 log show revision history of entire repository or files
193 193 manifest output the current or given revision of the project manifest
194 merge Merge working directory with another revision
194 merge merge working directory with another revision
195 195 outgoing show changesets not found in destination
196 196 parents show the parents of the working dir or revision
197 197 paths show definition of symbolic path names
@@ -210,7 +210,7 b' list of commands (use "hg help -v" to sh'
210 210 tags list repository tags
211 211 tip show the tip revision
212 212 unbundle apply a changegroup file
213 update update or merge working directory
213 update update working directory
214 214 verify verify the integrity of the repository
215 215 version output version and copyright information
216 216 %% not tested: --debugger
@@ -10,6 +10,7 b' basic commands (use "hg help" for the fu'
10 10 export dump the header and diffs for one or more changesets
11 11 init create a new repository in the given directory
12 12 log show revision history of entire repository or files
13 merge merge working directory with another revision
13 14 parents show the parents of the working dir or revision
14 15 pull pull changes from the specified source
15 16 push push changes to the specified destination
@@ -17,7 +18,7 b' basic commands (use "hg help" for the fu'
17 18 revert revert files or dirs to their states as of some revision
18 19 serve export the repository via HTTP
19 20 status show changed files in the working directory
20 update update or merge working directory
21 update update working directory
21 22 add add the specified files on the next commit
22 23 annotate show changeset information per file line
23 24 clone make a copy of an existing repository
@@ -26,6 +27,7 b' basic commands (use "hg help" for the fu'
26 27 export dump the header and diffs for one or more changesets
27 28 init create a new repository in the given directory
28 29 log show revision history of entire repository or files
30 merge merge working directory with another revision
29 31 parents show the parents of the working dir or revision
30 32 pull pull changes from the specified source
31 33 push push changes to the specified destination
@@ -33,7 +35,7 b' basic commands (use "hg help" for the fu'
33 35 revert revert files or dirs to their states as of some revision
34 36 serve export the repository via HTTP
35 37 status show changed files in the working directory
36 update update or merge working directory
38 update update working directory
37 39 Mercurial Distributed SCM
38 40
39 41 list of commands (use "hg help -v" to show aliases and global options):
@@ -62,7 +64,7 b' list of commands (use "hg help -v" to sh'
62 64 locate locate files matching specific patterns
63 65 log show revision history of entire repository or files
64 66 manifest output the current or given revision of the project manifest
65 merge Merge working directory with another revision
67 merge merge working directory with another revision
66 68 outgoing show changesets not found in destination
67 69 parents show the parents of the working dir or revision
68 70 paths show definition of symbolic path names
@@ -81,7 +83,7 b' list of commands (use "hg help -v" to sh'
81 83 tags list repository tags
82 84 tip show the tip revision
83 85 unbundle apply a changegroup file
84 update update or merge working directory
86 update update working directory
85 87 verify verify the integrity of the repository
86 88 version output version and copyright information
87 89 add add the specified files on the next commit
@@ -108,7 +110,7 b' list of commands (use "hg help -v" to sh'
108 110 locate locate files matching specific patterns
109 111 log show revision history of entire repository or files
110 112 manifest output the current or given revision of the project manifest
111 merge Merge working directory with another revision
113 merge merge working directory with another revision
112 114 outgoing show changesets not found in destination
113 115 parents show the parents of the working dir or revision
114 116 paths show definition of symbolic path names
@@ -127,7 +129,7 b' list of commands (use "hg help -v" to sh'
127 129 tags list repository tags
128 130 tip show the tip revision
129 131 unbundle apply a changegroup file
130 update update or merge working directory
132 update update working directory
131 133 verify verify the integrity of the repository
132 134 version output version and copyright information
133 135 hg add [OPTION]... [FILE]...
@@ -257,6 +259,7 b' basic commands (use "hg help" for the fu'
257 259 export dump the header and diffs for one or more changesets
258 260 init create a new repository in the given directory
259 261 log show revision history of entire repository or files
262 merge merge working directory with another revision
260 263 parents show the parents of the working dir or revision
261 264 pull pull changes from the specified source
262 265 push push changes to the specified destination
@@ -264,7 +267,7 b' basic commands (use "hg help" for the fu'
264 267 revert revert files or dirs to their states as of some revision
265 268 serve export the repository via HTTP
266 269 status show changed files in the working directory
267 update update or merge working directory
270 update update working directory
268 271 hg: unknown command 'skjdfks'
269 272 Mercurial Distributed SCM
270 273
@@ -278,6 +281,7 b' basic commands (use "hg help" for the fu'
278 281 export dump the header and diffs for one or more changesets
279 282 init create a new repository in the given directory
280 283 log show revision history of entire repository or files
284 merge merge working directory with another revision
281 285 parents show the parents of the working dir or revision
282 286 pull pull changes from the specified source
283 287 push push changes to the specified destination
@@ -285,4 +289,4 b' basic commands (use "hg help" for the fu'
285 289 revert revert files or dirs to their states as of some revision
286 290 serve export the repository via HTTP
287 291 status show changed files in the working directory
288 update update or merge working directory
292 update update working directory
@@ -22,6 +22,7 b' baseurl = http://test/'
22 22 foo@bar = *
23 23 EOF
24 24
25 hg help notify
25 26 hg init a
26 27 echo a > a/a
27 28 echo % commit
@@ -1,3 +1,6 b''
1 notify extension - No help text available
2
3 no commands defined
1 4 % commit
2 5 adding a
3 6 % clone
@@ -13,6 +13,7 b' basic commands (use "hg help" for the fu'
13 13 export dump the header and diffs for one or more changesets
14 14 init create a new repository in the given directory
15 15 log show revision history of entire repository or files
16 merge merge working directory with another revision
16 17 parents show the parents of the working dir or revision
17 18 pull pull changes from the specified source
18 19 push push changes to the specified destination
@@ -20,7 +21,7 b' basic commands (use "hg help" for the fu'
20 21 revert revert files or dirs to their states as of some revision
21 22 serve export the repository via HTTP
22 23 status show changed files in the working directory
23 update update or merge working directory
24 update update working directory
24 25 0: a
25 26 % should succeed - up is an alias, not an abbreviation
26 27 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now