Commit Graph

8588 Commits

Author SHA1 Message Date
Nicolas Dumazet
b8d0dc416a inotify: Coding Style: name classes in lowercase. 2009-05-11 08:19:28 +09:00
Nicolas Dumazet
5be26b4e65 inotify: dic.setdefault(k, d) ; v = dic[k] --> v = dic.setdefault(k, d)
dict.setdefault sets a default value, but also returns the dict.get result.
Getting the value on the next instruction was redundant.
2009-05-08 16:28:52 +09:00
Nicolas Dumazet
b4d001671b inotify: make mask a class variable since it's instance-independant 2009-05-08 16:40:39 +09:00
Nicolas Dumazet
88ad7f57b8 inotify: RepoWatcher.updatestatus: document & use meaningful parameter names 2009-05-08 17:45:01 +09:00
Nicolas Dumazet
3c555dfff3 inotify: server.walk(): use yield instead of for
iterate on subdir when the directory is found, not
once all the directories are found, since yield order doesn't matter
2009-05-04 18:19:26 +09:00
Simon Heimberg
df774ad0e5 context: replace pseudo-set by real set 2009-05-14 10:59:55 +02:00
Martin Geisler
a231ff4f38 highlight: updated changed test output
It was changed in 00697060e4d8, but I forgot to update it.
2009-05-14 13:21:47 +02:00
Martin Geisler
db52139a34 byterange: fix import error
We must import the module as email.Utils on case-sensitive
filesystems.
2009-05-14 13:20:04 +02:00
Michael J. Pedersen
5874aad1d7 convert: adding branchmap functionality to convert extension 2009-05-13 15:03:31 -04:00
Martin Geisler
e03fc942e6 spartan: break long lines in map file 2009-05-13 22:42:40 +02:00
Martin Geisler
01c8a33fbd monoblue: break long lines in map file 2009-05-13 22:42:19 +02:00
Martin Geisler
80ce65be72 gitweb: break long lines in map file 2009-05-13 22:41:58 +02:00
Martin Geisler
9ff18c2eb2 coal: break long lines in map file 2009-05-13 22:41:36 +02:00
Martin Geisler
264d2453c3 paper: break long lines in map file 2009-05-13 22:40:49 +02:00
Bryan O'Sullivan
1674afb927 hgwebdir: refresh configuration periodically
The old default behaviour of hgwebdir was to maintain a list of
repositories permanently. This interacted badly with persistent
application hosting software such as WSGI containers.  If a new repository
was published, it would potentially never appear in the top-level list
of repositories.

This change causes the hgwebdir configuration and list of repositories
served to be refreshed periodically (at most every 20 seconds).
2009-05-13 13:30:28 -07:00
Jonathan Kotta
54a1763f72 allow toggling when the cursor is on the correct line instead of just the filename text in hg-commit-toggle-file 2009-05-13 13:07:43 -05:00
Rocco Rutte
a7d36bb777 coal/paper: Wrap diff in <pre/>
In text-mode browsers the diff is otherwise rendered
as just one long line per file. Other styles do the same.
2009-05-13 16:31:19 +02:00
Martin Geisler
4d0bbe44ba cmdutil: replace pseudo-set by real set 2009-05-12 01:08:28 +02:00
Mikkel Krøigaard
9012760ce5 i18n-da: fixed unfortunate translation
The Danish word "fjern" means both "remote" and "remove".
2009-05-13 15:35:25 +02:00
Dirkjan Ochtman
43d9564cff some modernization cleanups, forward compatibility 2009-05-13 14:08:39 +02:00
Greg Ward
83279aa18a Makefile: fix grammar in comment 2009-05-12 10:03:36 -04:00
Henrik Stuart
f69c330ac1 windows: avoid deleting non-empty reparse points
If a hg repository including working directory is a reparse point (directory
symlinked or a junction point), then using os.removedirs will remove the
reparse point erroneously. This is fixed by only removing directories if they
are empty.
2009-05-12 15:50:44 +02:00
Henrik Stuart
ec8d726ba0 transaction: add atomic groups to transaction logic
When performing a strip operation on a repository, it is vital that all the
truncations are performed, or that none of them are. This is done by adding
support for writing a number of entries in a single operation.

Co-contributor: Sune Foldager <cryo@cyanite.org>
2009-05-11 21:12:40 +02:00
Dirkjan Ochtman
9b104a6a4a mq: add -P/--push option to qimport 2009-05-12 11:15:54 +02:00
Dirkjan Ochtman
6f7f8e3dec templater: make the templating engine pluggable to some extent 2009-05-12 12:05:19 +02:00
Dirkjan Ochtman
5c6c43b746 templater: provide the standard template filters by default 2009-05-12 12:04:05 +02:00
Dirkjan Ochtman
d939b28808 hgweb: trust config file passed into hgwebdir
Before this patch, hgwebdir suddenly showed up empty for a webdir-conf file
that was for some reason not trusted. This was previously not a problem because
the trust mechanism wasn't required for the very separate webdir-conf.
2009-05-12 10:57:55 +02:00
Dirkjan Ochtman
ffa181f4fd tests: add test for branches webcommand 2009-05-12 11:05:13 +02:00
Sune Foldager
e88b228e4c spartan: add branches page 2009-05-12 11:58:39 +02:00
Sune Foldager
02b5ecc2fb gitweb: add branches page 2009-05-11 21:12:44 +02:00
Sune Foldager
d94721fac7 monoblue: add branches page 2009-05-11 21:14:43 +02:00
Dirkjan Ochtman
044ab8755d hgweb: use context api in branches webcommand 2009-05-12 10:23:45 +02:00
Sune Foldager
ffb22da91d paper/coal: add branches page 2009-05-12 12:00:54 +02:00
Sune Foldager
de66a009d3 webcommands: add 'branches' command, similar to 'tags' 2009-05-12 09:43:36 +02:00
Rocco Rutte
4ed7542551 test-patchbomb: fix style
Specifying revisions without -r is deprecated, break long lines.
2009-05-12 11:27:26 +02:00
Martin Geisler
aa4858058d tests: avoid export FOO=bar bashism 2009-05-11 23:42:03 +02:00
Martin Geisler
6b1b141eed i18n-da: fix typo and translate rollback messages 2009-05-11 00:16:49 +02:00
Martin Geisler
ccf16e42d8 record: better formatting for qrecord help 2009-05-10 01:18:38 +02:00
Bryan O'Sullivan
ff0948b137 util.termwidth: a file-like object may legitimately lack a fileno() method
Spotted in the wild when running a hook while pushing over HTTPS.
2009-05-11 11:53:27 -07:00
Dirkjan Ochtman
1c646f503a hgweb: get rid of inaccurate hgwebdir.repos_sorted, localize machinery 2009-05-11 14:19:49 +02:00
Alexander Solovyov
038c7df455 hgwebdir: read --webdir-conf as actual configuration to ui (issue1586)
This cleans up code and allows specification of values more globally. For
example, it's now possible to specify web.contact in webdir-conf for all
repositories without a specified contact set.
2009-05-11 14:20:18 +02:00
Sune Foldager
3b6f32dcc9 url: fix bug in passwordmgr related to auth configuration
Usernames given as part of the URL would be ignored.
This bug was introduced in ff71c1e17a2ae6bd42d85685b412005cc1340c33
2009-05-11 07:55:13 +02:00
Martin Geisler
a46b13f8bb mail: updated comment 2009-05-08 15:14:04 +02:00
Alexander Solovyov
d57b80d44e add verbose output to compact template style 2009-05-11 13:03:34 +03:00
Brodie Rao
f244d61202 hgrc.5: fix label delimiter 2009-05-09 15:08:46 -04:00
Martin Geisler
a9670d9567 util: remove unused bufsize argument in popen[23] 2009-05-09 17:34:11 +02:00
Martin Geisler
e8bc5f4f01 util: remove ignored mode argument in popen[23] 2009-05-09 17:32:57 +02:00
Martin Geisler
7cdf7edf27 i18n-da: synchronized and improved slightly 2009-05-09 17:12:39 +02:00
Martin Geisler
110a176288 copies: don't translate untranslatable string 2009-05-09 14:56:06 +02:00
Nicolas Dumazet
3f9a2970a1 inotify: remove the useless 'if st' checks in RepoWatcher.filestatus
Only call is in RepoWatcher.updatestatus:
if st:
    self.filestatus(wfn, st)

st can never be None
2009-05-08 17:17:03 +09:00