##// 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 defining command defaults. The command defaults will also be
151 defining command defaults. The command defaults will also be
152 applied to the aliases of the commands defined.
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 email::
170 email::
155 Settings for extensions that send email messages.
171 Settings for extensions that send email messages.
156 from;;
172 from;;
@@ -698,7 +698,6 b' class queue:'
698 if saveheads:
698 if saveheads:
699 backupch = repo.changegroupsubset(savebases.keys(), saveheads, 'strip')
699 backupch = repo.changegroupsubset(savebases.keys(), saveheads, 'strip')
700 chgrpfile = bundle(backupch)
700 chgrpfile = bundle(backupch)
701 chgrpfile = 'file:%s' % chgrpfile
702
701
703 stripall(revnum)
702 stripall(revnum)
704
703
@@ -707,7 +706,8 b' class queue:'
707 repo.manifest.strip(repo.manifest.rev(change[0]), revnum)
706 repo.manifest.strip(repo.manifest.rev(change[0]), revnum)
708 if saveheads:
707 if saveheads:
709 self.ui.status("adding branch\n")
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 if backup != "strip":
711 if backup != "strip":
712 os.unlink(chgrpfile)
712 os.unlink(chgrpfile)
713
713
@@ -11,7 +11,7 b' from i18n import _'
11 import bisect, os, re, sys, signal, imp, urllib, pdb, shlex, stat
11 import bisect, os, re, sys, signal, imp, urllib, pdb, shlex, stat
12 import fancyopts, ui, hg, util, lock, revlog, bundlerepo
12 import fancyopts, ui, hg, util, lock, revlog, bundlerepo
13 import difflib, patch, time, help, mdiff, tempfile
13 import difflib, patch, time, help, mdiff, tempfile
14 import traceback, errno, version, atexit
14 import traceback, errno, version, atexit, socket
15 import archival, changegroup, cmdutil, hgweb.server, sshserver
15 import archival, changegroup, cmdutil, hgweb.server, sshserver
16
16
17 class UnknownCommand(Exception):
17 class UnknownCommand(Exception):
@@ -1337,13 +1337,20 b' def help_(ui, name=None, with_version=Fa'
1337 ui.write(d, '\n')
1337 ui.write(d, '\n')
1338
1338
1339 ui.status('\n')
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 if ui.verbose:
1347 if ui.verbose:
1341 ui.status(_('list of commands:\n\n'))
1348 ui.status(_('list of commands:\n\n'))
1342 else:
1349 else:
1343 ui.status(_('list of commands (use "hg help -v %s" '
1350 ui.status(_('list of commands (use "hg help -v %s" '
1344 'to show aliases and global options):\n\n') % name)
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 helplist(modcmds.has_key)
1354 helplist(modcmds.has_key)
1348
1355
1349 if name and name != 'shortlist':
1356 if name and name != 'shortlist':
@@ -1761,7 +1768,7 b' def manifest(ui, repo, rev=None):'
1761 ui.write("%s\n" % f)
1768 ui.write("%s\n" % f)
1762
1769
1763 def merge(ui, repo, node=None, force=None):
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 Merge the contents of the current working directory and the
1773 Merge the contents of the current working directory and the
1767 requested revision. Files that changed between either parent are
1774 requested revision. Files that changed between either parent are
@@ -2477,7 +2484,7 b' def unbundle(ui, repo, fname, **opts):'
2477 return postincoming(ui, repo, modheads, opts['update'])
2484 return postincoming(ui, repo, modheads, opts['update'])
2478
2485
2479 def update(ui, repo, node=None, clean=False, date=None):
2486 def update(ui, repo, node=None, clean=False, date=None):
2480 """update or merge working directory
2487 """update working directory
2481
2488
2482 Update the working directory to the specified revision.
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 merge command.
2496 merge command.
2490
2497
2491 By default, update will refuse to run if doing so would require
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 if date:
2501 if date:
2495 if node:
2502 if node:
@@ -2768,7 +2775,7 b' table = {'
2768 ] + walkopts,
2775 ] + walkopts,
2769 _('hg log [OPTION]... [FILE]')),
2776 _('hg log [OPTION]... [FILE]')),
2770 "manifest": (manifest, [], _('hg manifest [REV]')),
2777 "manifest": (manifest, [], _('hg manifest [REV]')),
2771 "merge":
2778 "^merge":
2772 (merge,
2779 (merge,
2773 [('f', 'force', None, _('force a merge with outstanding changes'))],
2780 [('f', 'force', None, _('force a merge with outstanding changes'))],
2774 _('hg merge [-f] [REV]')),
2781 _('hg merge [-f] [REV]')),
@@ -3230,11 +3237,17 b' def dispatch(args):'
3230 u.warn(_("\nbroken pipe\n"))
3237 u.warn(_("\nbroken pipe\n"))
3231 else:
3238 else:
3232 raise
3239 raise
3240 except socket.error, inst:
3241 u.warn(_("abort: %s\n") % inst[1])
3233 except IOError, inst:
3242 except IOError, inst:
3234 if hasattr(inst, "code"):
3243 if hasattr(inst, "code"):
3235 u.warn(_("abort: %s\n") % inst)
3244 u.warn(_("abort: %s\n") % inst)
3236 elif hasattr(inst, "reason"):
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 elif hasattr(inst, "args") and inst[0] == errno.EPIPE:
3251 elif hasattr(inst, "args") and inst[0] == errno.EPIPE:
3239 if u.debugflag:
3252 if u.debugflag:
3240 u.warn(_("broken pipe\n"))
3253 u.warn(_("broken pipe\n"))
@@ -6,7 +6,7 b''
6 # This software may be used and distributed according to the terms
6 # This software may be used and distributed according to the terms
7 # of the GNU General Public License, incorporated herein by reference.
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 from mercurial import ui, hg, util, templater
10 from mercurial import ui, hg, util, templater
11 from hgweb_mod import hgweb
11 from hgweb_mod import hgweb
12 from hgwebdir_mod import hgwebdir
12 from hgwebdir_mod import hgwebdir
@@ -55,10 +55,17 b' class _hgwebhandler(object, BaseHTTPServ'
55
55
56 def do_POST(self):
56 def do_POST(self):
57 try:
57 try:
58 self.do_hgweb()
58 try:
59 except socket.error, inst:
59 self.do_hgweb()
60 if inst[0] != errno.EPIPE:
60 except socket.error, inst:
61 raise
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 def do_GET(self):
70 def do_GET(self):
64 self.do_POST()
71 self.do_POST()
@@ -256,15 +256,19 b' class httprepository(remoterepository):'
256 proto = resp.headers['content-type']
256 proto = resp.headers['content-type']
257
257
258 # accept old "text/plain" and "application/hg-changegroup" for now
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 not proto.startswith('text/plain') and \
260 not proto.startswith('text/plain') and \
261 not proto.startswith('application/hg-changegroup'):
261 not proto.startswith('application/hg-changegroup'):
262 raise hg.RepoError(_("'%s' does not appear to be an hg repository") %
262 raise hg.RepoError(_("'%s' does not appear to be an hg repository") %
263 self._url)
263 self._url)
264
264
265 if proto.startswith('application/mercurial'):
265 if proto.startswith('application/mercurial-'):
266 version = proto[22:]
266 try:
267 if float(version) > 0.1:
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 raise hg.RepoError(_("'%s' uses newer protocol %s") %
272 raise hg.RepoError(_("'%s' uses newer protocol %s") %
269 (self._url, version))
273 (self._url, version))
270
274
@@ -141,7 +141,7 b' list of commands (use "hg help -v" to sh'
141 locate locate files matching specific patterns
141 locate locate files matching specific patterns
142 log show revision history of entire repository or files
142 log show revision history of entire repository or files
143 manifest output the current or given revision of the project manifest
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 outgoing show changesets not found in destination
145 outgoing show changesets not found in destination
146 parents show the parents of the working dir or revision
146 parents show the parents of the working dir or revision
147 paths show definition of symbolic path names
147 paths show definition of symbolic path names
@@ -160,7 +160,7 b' list of commands (use "hg help -v" to sh'
160 tags list repository tags
160 tags list repository tags
161 tip show the tip revision
161 tip show the tip revision
162 unbundle apply a changegroup file
162 unbundle apply a changegroup file
163 update update or merge working directory
163 update update working directory
164 verify verify the integrity of the repository
164 verify verify the integrity of the repository
165 version output version and copyright information
165 version output version and copyright information
166 Mercurial Distributed SCM
166 Mercurial Distributed SCM
@@ -191,7 +191,7 b' list of commands (use "hg help -v" to sh'
191 locate locate files matching specific patterns
191 locate locate files matching specific patterns
192 log show revision history of entire repository or files
192 log show revision history of entire repository or files
193 manifest output the current or given revision of the project manifest
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 outgoing show changesets not found in destination
195 outgoing show changesets not found in destination
196 parents show the parents of the working dir or revision
196 parents show the parents of the working dir or revision
197 paths show definition of symbolic path names
197 paths show definition of symbolic path names
@@ -210,7 +210,7 b' list of commands (use "hg help -v" to sh'
210 tags list repository tags
210 tags list repository tags
211 tip show the tip revision
211 tip show the tip revision
212 unbundle apply a changegroup file
212 unbundle apply a changegroup file
213 update update or merge working directory
213 update update working directory
214 verify verify the integrity of the repository
214 verify verify the integrity of the repository
215 version output version and copyright information
215 version output version and copyright information
216 %% not tested: --debugger
216 %% not tested: --debugger
@@ -10,6 +10,7 b' basic commands (use "hg help" for the fu'
10 export dump the header and diffs for one or more changesets
10 export dump the header and diffs for one or more changesets
11 init create a new repository in the given directory
11 init create a new repository in the given directory
12 log show revision history of entire repository or files
12 log show revision history of entire repository or files
13 merge merge working directory with another revision
13 parents show the parents of the working dir or revision
14 parents show the parents of the working dir or revision
14 pull pull changes from the specified source
15 pull pull changes from the specified source
15 push push changes to the specified destination
16 push push changes to the specified destination
@@ -17,7 +18,7 b' basic commands (use "hg help" for the fu'
17 revert revert files or dirs to their states as of some revision
18 revert revert files or dirs to their states as of some revision
18 serve export the repository via HTTP
19 serve export the repository via HTTP
19 status show changed files in the working directory
20 status show changed files in the working directory
20 update update or merge working directory
21 update update working directory
21 add add the specified files on the next commit
22 add add the specified files on the next commit
22 annotate show changeset information per file line
23 annotate show changeset information per file line
23 clone make a copy of an existing repository
24 clone make a copy of an existing repository
@@ -26,6 +27,7 b' basic commands (use "hg help" for the fu'
26 export dump the header and diffs for one or more changesets
27 export dump the header and diffs for one or more changesets
27 init create a new repository in the given directory
28 init create a new repository in the given directory
28 log show revision history of entire repository or files
29 log show revision history of entire repository or files
30 merge merge working directory with another revision
29 parents show the parents of the working dir or revision
31 parents show the parents of the working dir or revision
30 pull pull changes from the specified source
32 pull pull changes from the specified source
31 push push changes to the specified destination
33 push push changes to the specified destination
@@ -33,7 +35,7 b' basic commands (use "hg help" for the fu'
33 revert revert files or dirs to their states as of some revision
35 revert revert files or dirs to their states as of some revision
34 serve export the repository via HTTP
36 serve export the repository via HTTP
35 status show changed files in the working directory
37 status show changed files in the working directory
36 update update or merge working directory
38 update update working directory
37 Mercurial Distributed SCM
39 Mercurial Distributed SCM
38
40
39 list of commands (use "hg help -v" to show aliases and global options):
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 locate locate files matching specific patterns
64 locate locate files matching specific patterns
63 log show revision history of entire repository or files
65 log show revision history of entire repository or files
64 manifest output the current or given revision of the project manifest
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 outgoing show changesets not found in destination
68 outgoing show changesets not found in destination
67 parents show the parents of the working dir or revision
69 parents show the parents of the working dir or revision
68 paths show definition of symbolic path names
70 paths show definition of symbolic path names
@@ -81,7 +83,7 b' list of commands (use "hg help -v" to sh'
81 tags list repository tags
83 tags list repository tags
82 tip show the tip revision
84 tip show the tip revision
83 unbundle apply a changegroup file
85 unbundle apply a changegroup file
84 update update or merge working directory
86 update update working directory
85 verify verify the integrity of the repository
87 verify verify the integrity of the repository
86 version output version and copyright information
88 version output version and copyright information
87 add add the specified files on the next commit
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 locate locate files matching specific patterns
110 locate locate files matching specific patterns
109 log show revision history of entire repository or files
111 log show revision history of entire repository or files
110 manifest output the current or given revision of the project manifest
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 outgoing show changesets not found in destination
114 outgoing show changesets not found in destination
113 parents show the parents of the working dir or revision
115 parents show the parents of the working dir or revision
114 paths show definition of symbolic path names
116 paths show definition of symbolic path names
@@ -127,7 +129,7 b' list of commands (use "hg help -v" to sh'
127 tags list repository tags
129 tags list repository tags
128 tip show the tip revision
130 tip show the tip revision
129 unbundle apply a changegroup file
131 unbundle apply a changegroup file
130 update update or merge working directory
132 update update working directory
131 verify verify the integrity of the repository
133 verify verify the integrity of the repository
132 version output version and copyright information
134 version output version and copyright information
133 hg add [OPTION]... [FILE]...
135 hg add [OPTION]... [FILE]...
@@ -257,6 +259,7 b' basic commands (use "hg help" for the fu'
257 export dump the header and diffs for one or more changesets
259 export dump the header and diffs for one or more changesets
258 init create a new repository in the given directory
260 init create a new repository in the given directory
259 log show revision history of entire repository or files
261 log show revision history of entire repository or files
262 merge merge working directory with another revision
260 parents show the parents of the working dir or revision
263 parents show the parents of the working dir or revision
261 pull pull changes from the specified source
264 pull pull changes from the specified source
262 push push changes to the specified destination
265 push push changes to the specified destination
@@ -264,7 +267,7 b' basic commands (use "hg help" for the fu'
264 revert revert files or dirs to their states as of some revision
267 revert revert files or dirs to their states as of some revision
265 serve export the repository via HTTP
268 serve export the repository via HTTP
266 status show changed files in the working directory
269 status show changed files in the working directory
267 update update or merge working directory
270 update update working directory
268 hg: unknown command 'skjdfks'
271 hg: unknown command 'skjdfks'
269 Mercurial Distributed SCM
272 Mercurial Distributed SCM
270
273
@@ -278,6 +281,7 b' basic commands (use "hg help" for the fu'
278 export dump the header and diffs for one or more changesets
281 export dump the header and diffs for one or more changesets
279 init create a new repository in the given directory
282 init create a new repository in the given directory
280 log show revision history of entire repository or files
283 log show revision history of entire repository or files
284 merge merge working directory with another revision
281 parents show the parents of the working dir or revision
285 parents show the parents of the working dir or revision
282 pull pull changes from the specified source
286 pull pull changes from the specified source
283 push push changes to the specified destination
287 push push changes to the specified destination
@@ -285,4 +289,4 b' basic commands (use "hg help" for the fu'
285 revert revert files or dirs to their states as of some revision
289 revert revert files or dirs to their states as of some revision
286 serve export the repository via HTTP
290 serve export the repository via HTTP
287 status show changed files in the working directory
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 foo@bar = *
22 foo@bar = *
23 EOF
23 EOF
24
24
25 hg help notify
25 hg init a
26 hg init a
26 echo a > a/a
27 echo a > a/a
27 echo % commit
28 echo % commit
@@ -1,3 +1,6 b''
1 notify extension - No help text available
2
3 no commands defined
1 % commit
4 % commit
2 adding a
5 adding a
3 % clone
6 % clone
@@ -13,6 +13,7 b' basic commands (use "hg help" for the fu'
13 export dump the header and diffs for one or more changesets
13 export dump the header and diffs for one or more changesets
14 init create a new repository in the given directory
14 init create a new repository in the given directory
15 log show revision history of entire repository or files
15 log show revision history of entire repository or files
16 merge merge working directory with another revision
16 parents show the parents of the working dir or revision
17 parents show the parents of the working dir or revision
17 pull pull changes from the specified source
18 pull pull changes from the specified source
18 push push changes to the specified destination
19 push push changes to the specified destination
@@ -20,7 +21,7 b' basic commands (use "hg help" for the fu'
20 revert revert files or dirs to their states as of some revision
21 revert revert files or dirs to their states as of some revision
21 serve export the repository via HTTP
22 serve export the repository via HTTP
22 status show changed files in the working directory
23 status show changed files in the working directory
23 update update or merge working directory
24 update update working directory
24 0: a
25 0: a
25 % should succeed - up is an alias, not an abbreviation
26 % should succeed - up is an alias, not an abbreviation
26 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
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