doc/PLAN
author Paul Crowley <paul@lshift.net>
Tue, 24 Feb 2009 10:31:48 +0000
changeset 65 d5c3bb61607b
child 67 fd16d9a1234b
permissions -rw-r--r--
Describe plan to abolish shell scripts and un-hard-wire paths
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
65
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     1
Plan: do away with shell scripts, and un-hard-wire the path /usr/local/lib/mercurial-server.
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     2
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     3
Steps:
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     4
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     5
- move all modules into mercurial_server directory
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     6
- make mercurial_server.paths module; a function sets a global based on sys.argv[0]
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     7
- reduce hg-ssh-wrapper to nothing by moving all functionality into hg-ssh
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     8
- same for refresh-auth
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
     9
- move most of do-refresh-auth into a module
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    10
- give that module a hook, and call the hook instead of the exe
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    11
- abolish refresh-auth shell script and rename do-refresh-auth to refresh-auth
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    12
- replace env vars with Python globals
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    13
- change refresh-auth to refer to hg-ssh directly, abolish hg-ssh-wrapper
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    14
- add comment check and -f flag to refresh-auth
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    15
- change install script to a Python script, abolishing hginit
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    16
d5c3bb61607b Describe plan to abolish shell scripts and un-hard-wire paths
Paul Crowley <paul@lshift.net>
parents:
diff changeset
    17