equal
deleted
inserted
replaced
26 command="cd repos && hg-ssh user/thomas/* projects/{mercurial,foo}" |
26 command="cd repos && hg-ssh user/thomas/* projects/{mercurial,foo}" |
27 |
27 |
28 You can also add a --read-only flag to allow read-only access to a key, e.g.: |
28 You can also add a --read-only flag to allow read-only access to a key, e.g.: |
29 command="hg-ssh --read-only repos/*" |
29 command="hg-ssh --read-only repos/*" |
30 """ |
30 """ |
|
31 from __future__ import absolute_import |
|
32 |
|
33 import os |
|
34 import shlex |
|
35 import sys |
31 |
36 |
32 # enable importing on demand to reduce startup time |
37 # enable importing on demand to reduce startup time |
33 from mercurial import demandimport; demandimport.enable() |
38 import hgdemandimport ; hgdemandimport.enable() |
34 |
39 |
35 from mercurial import dispatch, ui as uimod |
40 from mercurial import ( |
36 |
41 dispatch, |
37 import sys, os, shlex |
42 ui as uimod, |
|
43 ) |
38 |
44 |
39 def main(): |
45 def main(): |
40 cwd = os.getcwd() |
46 cwd = os.getcwd() |
41 readonly = False |
47 readonly = False |
42 args = sys.argv[1:] |
48 args = sys.argv[1:] |