バージョン管理プログラムを使用してリポジトリを公開しましたmercurial
。より具体的には、mercurial-server
プログラムをインストールし、次の URL の指示に従いました。
と
http://dev.lshift.net/paul/mercurial-server/docbook.html
. リポジトリはうまく機能しますが、問題は、hg push
いくつかの変更を行った後にユーザーにメールが送信されないことです.
この問題をおそらく解決する方法を説明しているページをインターネット上でいくつか見つけましたがmercurial-server
、リポジトリを公開するために使用されたページはなくhg push
、公開方法ごとに異なるように見える電子メールの送信を有効にしました。
パッケージhg push
の場合に電子メールを有効にするにはどうすればよいですか? mercurial-server
用に SMTP サーバーをセットアップする必要がありますmercurial
か?
私のリポジトリディレクトリhgrc
のフォルダにあるファイルは次のとおりです。.hg
[paths]
default = ssh://hg@<ip_address>/jays/project
[extensions]
hgext.notify =
[hooks]
# Enable either changegroup or incoming.
# changegroup will send one email for each push,
# whereas incoming sends one email per changeset.
# Note: Configuring both is possible, but probably not
# what you want, you'll get one email for the group
# and one for each changeset in the group.
changegroup.notify = python:hgext.notify.hook
#commit.notify = python:hgext.notify.hook
#incoming.notify = python:hgext.notify.hook
[email]
from = <from@email.address>
[smtp]
host = <smtp.server.address>
# Optional options:
username = <smtp.server.username>
password = <smtp.server.password>
port = 465
tls = true
# local_hostname = me.example.com
# presently it is necessary to specify the baseurl for the notify
# extension to work. It can be a dummy value if your repo isn't
# available via http
[web]
baseurl = file:///
[notify]
# multiple sources can be specified as a whitespace separated list
sources = serve push pull bundle
# set this to False when you're ready for mail to start sending
test = false
# While the subscription information can be included in this file,
# (in which case, set: config =)
# having it in a separate file allows for it to be version controlled
# and for the option of having subscribers maintain it themselves.
config =
# you can override the changeset template here, if you want.
# If it doesn't start with \n it may confuse the email parser.
# here's an example that makes the changeset template look more like hg log:
#template = \ndetails: {baseurl}{webroot}/rev/{node|short}\nchangeset: {rev}:{node|short}\nuser: {author}\ndate: {date|date}\ndescription:\n{desc}\n
template = \ndetails: "{baseurl}{webroot}"\nchangeset: {rev}:{node|short}\nuser: {author}\ndate: {date|date}\ndescription:\n{desc}\n
# max lines of diffs to include (0=none, -1=all)
maxdiff = 1000
[reposubs]
* = <first@recipient.address>