# HG changeset patch # User Matt Mackall # Date 1310603094 18000 # Node ID 3a65e3f34b8cc42ddaaa5a34f0c35ba312520274 # Parent 647071c6dfcfc19a4dedb37c1e4c0b60378d953b# Parent ad6a58581ecd4712c5afbd9f5b48d829d7d7c02b merge with crew diff -r ad6a58581ecd -r 3a65e3f34b8c hgext/notify.py --- a/hgext/notify.py Wed Jul 13 16:29:28 2011 -0500 +++ b/hgext/notify.py Wed Jul 13 19:24:54 2011 -0500 @@ -167,9 +167,6 @@ return [mail.addressencode(self.ui, s, self.charsets, self.test) for s in sorted(subs)] - def url(self, path=None): - return self.ui.config('web', 'baseurl') + (path or self.root) - def node(self, ctx, **props): '''format one changeset, unless it is a suppressed merge.''' if not self.merge and len(ctx.parents()) > 1: diff -r ad6a58581ecd -r 3a65e3f34b8c tests/run-tests.py --- a/tests/run-tests.py Wed Jul 13 16:29:28 2011 -0500 +++ b/tests/run-tests.py Wed Jul 13 19:24:54 2011 -0500 @@ -726,6 +726,7 @@ rename(testpath + ".err", testpath) else: rename(testpath + ".err", testpath + ".out") + result('p', test) return result('f', (test, msg)) diff -r ad6a58581ecd -r 3a65e3f34b8c tests/test-notify-changegroup.t --- a/tests/test-notify-changegroup.t Wed Jul 13 16:29:28 2011 -0500 +++ b/tests/test-notify-changegroup.t Wed Jul 13 19:24:54 2011 -0500 @@ -72,4 +72,57 @@ @@ -0,0 +1,2 @@ +a +a + $ hg --cwd a rollback + repository tip rolled back to revision -1 (undo push) + working directory now based on revision -1 +unbundle with unrelated source + + $ hg --cwd b bundle ../test.hg ../a + searching for changes + 2 changesets found + $ hg --cwd a unbundle ../test.hg + adding changesets + adding manifests + adding file changes + added 2 changesets with 2 changes to 1 files + (run 'hg update' to get a working copy) + $ hg --cwd a rollback + repository tip rolled back to revision -1 (undo unbundle) + working directory now based on revision -1 + +unbundle with correct source + + $ hg --config notify.sources=unbundle --cwd a unbundle ../test.hg 2>&1 | + > python -c 'import sys,re; print re.sub("\n\t", " ", sys.stdin.read()),' + adding changesets + adding manifests + adding file changes + added 2 changesets with 2 changes to 1 files + Content-Type: text/plain; charset="us-ascii" + MIME-Version: 1.0 + Content-Transfer-Encoding: 7bit + Date: * (glob) + Subject: * (glob) + From: test + X-Hg-Notification: changeset cb9a9f314b8b + Message-Id: <*> (glob) + To: baz, foo@bar + + changeset cb9a9f314b8b in $TESTTMP/a + details: $TESTTMP/a?cmd=changeset;node=cb9a9f314b8b + summary: a + + changeset ba677d0156c1 in $TESTTMP/a + details: $TESTTMP/a?cmd=changeset;node=ba677d0156c1 + summary: b + + diffs (6 lines): + + diff -r 000000000000 -r ba677d0156c1 a + --- /dev/null Thu Jan 01 00:00:00 1970 +0000 + +++ b/a Thu Jan 01 00:00:00 1970 +0000 + @@ -0,0 +1,2 @@ + +a + +a + (run 'hg update' to get a working copy)