equal
deleted
inserted
replaced
7 |
7 |
8 import cStringIO, zlib, bz2, tempfile, errno, os, sys |
8 import cStringIO, zlib, bz2, tempfile, errno, os, sys |
9 from mercurial import util, streamclone |
9 from mercurial import util, streamclone |
10 from mercurial.i18n import gettext as _ |
10 from mercurial.i18n import gettext as _ |
11 from mercurial.node import * |
11 from mercurial.node import * |
|
12 |
|
13 # __all__ is populated with the allowed commands. Be sure to add to it if |
|
14 # you're adding a new command, or the new command won't work. |
|
15 |
|
16 __all__ = [ |
|
17 'lookup', 'heads', 'branches', 'between', 'changegroup', |
|
18 'changegroupsubset', 'capabilities', 'unbundle', 'stream_out', |
|
19 ] |
12 |
20 |
13 def lookup(web, req): |
21 def lookup(web, req): |
14 try: |
22 try: |
15 r = hex(web.repo.lookup(req.form['key'][0])) |
23 r = hex(web.repo.lookup(req.form['key'][0])) |
16 success = 1 |
24 success = 1 |