Walter Doerwald
c1832411b0
Simplify utils.walkrepos().
2007-08-28 18:00:07 +02:00
Thomas Arendsen Hein
a1c1677af4
Fix bad behaviour when specifying an invalid date (issue700)
...
commit (aborts _after_ typing in a commit message)
backout (aborted after the initial revert)
tag (edited .hgtags and couldn't commit)
import (patch applied, then commit fails)
qnew (aborts on bad dates, but writes any valid date into the # Date header)
qrefresh (like qnew)
sign (like tag)
fetch (merge, merge, merge, merge, abort)
2008-02-17 21:34:28 +01:00
Thomas Arendsen Hein
48cd266d6d
merge with crew
2008-02-16 13:34:11 +01:00
Thomas Arendsen Hein
728ba019da
Make annotae/grep print short dates with -q/--quiet.
...
Move shortdate() from templatefilters to util to avoid code duplication.
2008-02-16 13:33:38 +01:00
Patrick Mezard
5d1baa1a2e
util: always define a dummy lookup_reg()
2008-02-13 23:09:28 +01:00
Alexis S. L. Carvalho
38c9e04993
util.pathto: return '.' instead of an empty string
...
This could happen with something like
pathto(repo.root, 'foo/bar', 'foo/bar')
2008-02-15 10:38:37 -02:00
Thomas Arendsen Hein
3d8e3d2b46
merge with main
2008-02-14 00:13:20 +01:00
Dirkjan Ochtman
5df65fdd07
better handle errors with date parsing (issue983)
...
Windows cannot always handle a 1970-01-01 parameter to time.mktime().
2008-02-13 16:46:43 +01:00
Alexis S. L. Carvalho
918227be30
Make files in .hg inherit the permissions from .hg/store
2008-02-09 18:38:54 -02:00
Matt Mackall
7fb82b40e9
ignore: split up huge patterns
...
Some versions of Python silently mishandle large regexes, so split
them up at a conservative 20k.
2008-02-11 16:13:43 -06:00
Matt Mackall
ad1e6058b9
filemerge: add config item for GUI tools
...
<tool>.gui indicates whether a tool requires a GUI to run
2008-02-03 19:29:05 -06:00
Matt Mackall
2c7d69802c
merge: add registry look up bits to tool search
2008-02-03 19:29:05 -06:00
Matt Mackall
a849fab9e4
templater: move email function to util
2008-01-31 14:44:19 -06:00
Jesse Glick
e01183da16
Permit glob patterns to use nested curly braces.
2008-01-25 15:54:25 -05:00
Thomas Arendsen Hein
ddce807d45
merge with crew-stable
2008-01-22 00:55:01 +01:00
Thomas Arendsen Hein
133747d109
Fix double import of 're'.
2008-01-21 22:00:44 +01:00
Shun-ichi GOTO
da69eb2702
Fix not to use os.sep directly.
...
This change is intended for MBCS support.
2008-01-09 21:30:37 +09:00
Shun-ichi GOTO
fa59648c70
Add util.splitpath() and use it instead of using os.sep directly.
...
This change is intended to allow hooking splitpath() by win32mbcs
extension for MBCS support.
2008-01-09 21:30:36 +09:00
Shun-ichi GOTO
188e44cf4b
Add endswithsep() and use it instead of using os.sep and os.altsep directly.
...
This change is intended to allow hooking endswithsep() by win32mbcs
extension for MBCS support.
2008-01-09 21:30:35 +09:00
Bryan O'Sullivan
5b8903b6d7
util: drop params added during experimentation
2008-01-04 13:56:31 -08:00
Bryan O'Sullivan
497bf2ca7a
fetch: hide authentication details
2008-01-04 11:58:27 -08:00
Thomas Arendsen Hein
347da85c36
Removed tabs and trailing whitespace in python files
2007-12-29 19:49:48 +01:00
Patrick Mezard
db911b9d0f
util: filter all st_mode with 0777 in checkexec
2007-12-29 01:14:45 +01:00
Matt Mackall
b35a91a7c0
util: simplify unique
2007-12-27 23:55:40 -06:00
Thomas Arendsen Hein
462c1975db
Fix chmod of writable but unowned files (issue530)
...
This could happen e.g. in group writable local repositories where a file
should become executable on update.
(Patch by Benoit Boissinot attached to issue530)
2007-12-25 14:05:26 +01:00
Matt Mackall
c9efd52e9e
util: simplify unique
2007-12-27 23:55:40 -06:00
Matt Mackall
50455803c5
remove unused util.localsub function
2007-12-27 23:55:40 -06:00
Matt Mackall
1baaf41264
atomictempfile: avoid chmod weirdness on Linux vfat
2007-12-27 23:55:40 -06:00
Matt Mackall
bdea7ebd1b
checkexec: fix VFAT tempfile droppings with more modern Linux kernels
...
More recent Linux kernels don't pretend to allow any bogus chmods on
VFAT.
2007-12-27 23:55:40 -06:00
Matt Mackall
614e20b215
util: remove set_exec and set_link methods
2007-12-27 22:47:41 -06:00
Matt Mackall
717ff7e6f8
util: add new set_flags method
...
This is more efficient than calling set_link and set_exec
2007-12-27 22:27:45 -06:00
Thomas Arendsen Hein
b29abebc1e
merge with crew-stable
2007-12-25 14:30:10 +01:00
Matt Mackall
ebf85d18e1
util: get rid of is_win_9x wart
2007-12-18 14:01:42 -06:00
Shun-ichi GOTO
903870798f
Workaround for "Not enough space" error due to the bug of Windows.
...
Large write requests fail when stdout is switched to binary mode.
As a workaround, limit the data size to write once.
2007-12-14 16:47:41 +01:00
Steve Borho
dafb712d34
fix typo in sshargs
...
the original typo dated back to early 2005
2007-12-13 14:25:51 -06:00
Steve Borho
caa5fee772
win32: fix ssh://host:port when using Plink
...
Moves ssh argument building to platform specific utils code.
The win32 version looks for plink in ssh command string and
uses '-P' in lieu of '-p' for specifying a port
2007-12-12 16:44:26 -06:00
Manuel Holtgrewe
4a33cb8d98
Do not display passwords with pull/push/incoming/outgoing
...
Passwords specified in the repository URL are now displayed as '***'
when accessing the remote repository.
2007-11-05 20:29:32 +01:00
Maxim Dounin
8561d688a1
Fix file-changed-to-dir and dir-to-file commits (issue660).
...
Allow adding to dirstate files that clash with previously existing
but marked for removal. Protect from reintroducing clashes by revert.
This change doesn't address related issues with update. Current
workaround is to do "clean" update by manually removing conflicting
files/dirs from working directory.
2007-11-05 20:05:44 +03:00
Patrick Mezard
6aa1e21320
Fix Windows os.popen bug with interleaved stdout/stderr output
...
See python bug 1366 "popen spawned process may not write to stdout under windows" for more details.
2007-11-01 12:05:14 +01:00
Benoit Boissinot
c5049e31fc
explicitely use integer division
2007-10-11 16:19:12 +02:00
Matt Mackall
0804290ab7
revlog: fix caching of buffer objects
2007-10-11 00:46:53 -05:00
Matt Mackall
8a3a3e49fe
chunkiter: handle large reads more efficiently
...
- for large reads, don't attempt to read more than necessary
- if we've gathered the exact number of bytes needed, avoid a string copy
2007-10-11 00:46:52 -05:00
Matt Mackall
d3f1e8a8cf
chunkiter: simplify iter logic
2007-10-11 00:46:49 -05:00
Matt Mackall
614d4b8b33
chunkbuffer: removed unused method and arg
2007-10-11 00:46:48 -05:00
Rafael Villar Burke
1b278771bf
Execution bit detection fixes for VFAT on Linux
...
On Linux VFAT execution mode can be modified, but changes don't
persist a filesy stem remount. The current test can be trickled by
this. We can help with the det ection of VFAT checking whether new
files get created with the execution bits on
(as usually these partitions are mounted with the exec option, for
convenience)
.
2007-10-05 01:52:53 +02:00
Bryan O'Sullivan
e317f81ab3
Add osutil module, containing a listdir function.
...
This is similar to os.listdir, only it returns a sorted list of tuples.
2007-10-05 15:01:06 -07:00
Bryan O'Sullivan
5e33599d0f
Merge with crew.
2007-10-02 13:49:36 -07:00
Bryan O'Sullivan
65b17f114c
util: add default argument to strdate
2007-10-02 13:46:59 -07:00
Benoit Boissinot
7cf891935c
merge with -stable
2007-10-02 20:25:35 +02:00
Steve Borho
9f12241241
set_exec: do not chmod a symlink
2007-10-02 20:22:33 +02:00