Commit Graph

5512 Commits

Author SHA1 Message Date
Matt Mackall
cc38448e9d osutil: simplify DT_REG support 2007-10-08 18:47:17 -05:00
Matt Mackall
dafe26ed0b osutils: pull file stat loop into its own function 2007-10-08 18:47:16 -05:00
Matt Mackall
20936fe972 osutil: fold stat paths together
- simplify st/py_st logic
- use stp to point to stat buffer
- combine stat paths
2007-10-08 18:47:15 -05:00
Matt Mackall
65e8ee71fa osutil: more cleanups
- eliminate a level of nesting
- untab targets of gotos
2007-10-08 18:47:14 -05:00
Matt Mackall
50cce1cc95 osutil: eliminate alloca call
- make full_path a PATH_MAX + epsilon local buffer
- use strncpy and strncat
2007-10-08 18:47:12 -05:00
Matt Mackall
638a3ac761 osutil: cleanups
- use tabs
- eliminate old-style function pointer calls
- eliminate weird scoping
- eliminate assignment-in-iff
- use !foo rather than foo == NULL
2007-10-08 18:47:06 -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
Thomas Arendsen Hein
245381e916 test-convert-git: support older git client (1.4.4.4) 2007-10-04 14:23:28 +02:00
Christian Ebert
aa9b7d6cfb test-convert-cvs: handle older cvs client 2007-10-03 21:01:47 +02:00
Steve Borho
9f12241241 set_exec: do not chmod a symlink 2007-10-02 20:22:33 +02:00
Patrick Mezard
1ae2852b6f Test debugindexdot 2007-09-30 16:36:22 +02:00
Patrick Mezard
298631f312 Test mercurial convert sink removes empty directories. 2007-09-30 12:08:33 +02:00
Patrick Mezard
12ec5fa979 convert: fix missing import 2007-09-30 12:08:33 +02:00
Bryan O'Sullivan
4f30385a85 convert: delete empty directories if deleting a file (bug 754) 2007-09-29 21:08:14 -07:00
Alexis S. L. Carvalho
6f75c91b5f convert_git: avoid returning two entries for the same file in getchanges
This could happen in merge changesets if the merged file was different
from both parents.
2007-09-24 19:00:11 -03:00
Alexis S. L. Carvalho
38a7ae7001 mq: fix qrefresh -e with no patches applied 2007-09-24 19:00:11 -03:00
Alexis S. L. Carvalho
4b5f93a4e8 Push over HTTP: really tell the user the size of the bundle 2007-09-24 19:00:11 -03:00
Alexis S. L. Carvalho
6cc4435607 hgwebdir: ignore hgrc parse errors while building the index page
An error in the .hg/hgrc file from a repository would prevent the
following repos from being shown in the index page.

The IOError handling was unnecessary - it's already handled in
readconfig.

This should fix issue731.

The error in the .hg/hgrc file will still prevent the repo from
being exported with hgweb.
2007-09-24 19:00:11 -03:00
Alexis S. L. Carvalho
e23adec251 hgweb: don't raise an exception when displying empty repos
The nullid node claims it's in the default branch, but the branch dict
is empty.  This fixes the main symptom from issue696, but we may want
to set branchtags()['default'] = nullid somewhere for empty repos.
2007-09-24 19:00:11 -03:00
Alexis S. L. Carvalho
bef764be98 make identify an optionalrepo command
Fixes issue726.
2007-09-24 19:00:11 -03:00
Alexis S. L. Carvalho
bcee2981c6 copy: if destination ends with "/", make sure it's a directory
Fixes issue724.
2007-09-24 19:00:11 -03:00
Patrick Mezard
d611888360 Test renaming files brought by merge second parent (issue 746) 2007-09-23 14:40:44 +02:00
Patrick Mezard
58988c1395 localrepo: fix undelete() on merge working directory (issue 746) 2007-09-23 14:40:44 +02:00
Patrick Mezard
091a0db4eb Test static-http calls on '/' URI (issue 747) 2007-09-22 18:52:26 +02:00
Paul Bx
ab0ccce138 statichttprepo: fix calls on '/' URI (issue 747) 2007-09-22 18:37:35 +02:00
Patrick Mezard
7c438d2066 convert: test cvs repository conversion 2007-09-14 22:47:15 +02:00
Patrick Mezard
8577cf36be convert: workaround for cvsps.cache under Windows
In non-cygwin environment, cvsps fails to create its cache directory and redirect its output to stderr. Just ignore the error and capture stderr as well.
2007-09-14 22:17:53 +02:00
Patrick Mezard
7d74b8608f convert: fix remote cvs file paths separator 2007-09-14 22:17:53 +02:00
Patrick Mezard
fc230fc7bd convert: avoid interpreting Windows path as CVS connection strings.
CVS connection strings regexp detect colons to separate protocols from path and login. Unfortunately, Windows paths contains colons and were interpreted as rsh connection strings.
2007-09-14 22:17:53 +02:00
Patrick Mezard
93f1b14c12 convert: call popen2 in binary mode, with a command string. 2007-09-14 22:17:53 +02:00
Patrick Mezard
ee42bab2ca hghave: detect cvs and cvsps availability
"cvsps -h" was returning 1 in cygwin, probably because CVSROOT was unset, which does not prevent it to work correctly.
2007-09-14 22:17:53 +02:00
Christian Ebert
efbbc0df82 churn: simplify code to get terminal width 2007-09-12 12:54:36 +02:00
Patrick Mezard
59a5193f63 patch: fix git sendmail handling without proper mail headers 2007-10-08 22:20:23 +02:00
TK Soh
630bf5e215 hgk: allow any extdiff command for visual diff 2007-10-08 11:18:34 +08:00
Giorgos Keramidas
a1efeccfd8 osutil.c: style fix - delete trailing end-of-line spaces 2007-10-07 21:56:36 +03:00
Benoit Boissinot
8905e2628f convert: do not output when trying to load svn bindings 2007-10-07 20:45:10 +02:00
Benoit Boissinot
7120a66c0d convert: split converters into sink/source 2007-10-07 20:44:54 +02:00
Patrick Mezard
91790f92bf Test darcs converter 2007-10-07 19:03:32 +02:00
Patrick Mezard
99fd23e158 convert: fix darcs_source.pull() under windows 2007-10-07 18:59:03 +02:00
Patrick Mezard
fec1f9ad02 convert: fix darcs_source._run() under windows 2007-10-07 18:58:54 +02:00
Patrick Mezard
07f69a32a2 hghave: detect darcs client 2007-10-07 18:58:44 +02:00
Patrick Mezard
dc56a66c81 hghave: reorder check functions and entries 2007-10-07 18:58:36 +02:00
Patrick Mezard
be799c79c6 Test workingctx exec/link bit for copies.
Also, make the test runnable on platforms without symlinks.
2007-10-07 15:13:50 +02:00
Patrick Mezard
2dee2a1086 Fix workingctx exec/link bit of copies on non-supporting systems 2007-10-07 15:07:35 +02:00
Patrick Mezard
2eb7f085fc test-manifest: test symlink and exec bit display 2007-10-06 22:30:24 +02:00
Patrick Mezard
c9215420e8 Display symlink or executable bit with manifest -v
New output looks like:

644   a
755 * b/a
644 @ l
2007-10-06 22:30:22 +02:00
Patrick Mezard
2d81806ba5 convert: quote "^" to avoid windows using it as an escape char. 2007-10-06 21:19:06 +02:00
Alexis S. L. Carvalho
fa0374301e Always copy the necessary files before applying a git patch
This patch removes the "copymod" attribute from the gitpatch
class.

AFAICS, that attribute was only used to delay the copying of
renamed/copied files if there are no other changes to the target,
but in this case, if there are changes to the source, we'll end
up copying the wrong version.

This should fix issue762.
2007-10-06 15:30:15 -03:00
Alexis S. L. Carvalho
5a20fc9e55 mercurial_sink: regrab locks in setbranch 2007-10-06 15:30:15 -03:00
Alexis S. L. Carvalho
856d368557 convert --filemap: reduce memory usage 2007-10-06 15:30:15 -03:00