Commit Graph

6878 Commits

Author SHA1 Message Date
Matt Mackall
9b20862a98 store: simplify class hierarchy 2008-08-13 20:18:43 -05:00
Matt Mackall
eac969c591 statichttp: use store class
This lets us nix store.encodefn.
2008-08-13 20:18:43 -05:00
Matt Mackall
7e9e494932 store: take opener as an argument 2008-08-13 20:18:42 -05:00
Matt Mackall
2f3a27a9da localrepo: simplify requirements checking 2008-08-13 20:18:42 -05:00
Matt Mackall
6cbbb747e5 localrepo: kill _createmode 2008-08-13 20:18:42 -05:00
Adrian Buehlmann
6041ce9b15 add test-verify 2008-08-13 20:18:41 -05:00
Adrian Buehlmann
a318975eaf verify: check repo.store 2008-08-13 20:18:41 -05:00
Adrian Buehlmann
c330a45cd1 revlog: add files method 2008-08-13 20:18:41 -05:00
Adrian Buehlmann
0d98c22169 store.py: accept empty repos
Fixes a traceback on the server side when trying to streamclone
an empty repo (this was *not* introduced by 6590bef21ba3).
2008-08-13 20:18:41 -05:00
Matt Mackall
e3f5f88298 verify: only warn on copy nullid 2008-08-13 20:18:40 -05:00
Stefano Tortarolo
61967725af make commit fail when committing unresolved files 2008-08-13 20:18:40 -05:00
Shun-ichi Goto
92fe458e5a Update win32mbcs extension
* Code cleanup by Matt.
  * Fix the issue with case-insensitive fs support
    by wrapping also util.fspath() and util.checkcase()
  * Abort program when path conversion is failed.
2008-08-13 20:18:40 -05:00
Patrick Mezard
0eba22ee63 convert: implement startrev for hg source 2008-08-13 23:31:10 +02:00
Dirkjan Ochtman
6b51480caa merge with crew-stable 2008-08-12 17:47:08 +02:00
Remy Roy
1ec1bfb70c Folding correction and missing import 2008-08-12 10:05:00 -04:00
Matt Mackall
59a536d380 util: disinfect lookup_reg strings (issue1126)
lookup_reg could return Unicode strings, which would infect other strings and
generate unexpected tracebacks. Spotted by Rémy Roy.

Fold in silly nested function while we're at it.
2008-08-10 22:55:00 -05:00
Matt Mackall
08b29d9875 Merge with stable
Simplify the copy search algorithm
2008-08-10 18:38:43 -05:00
Matt Mackall
4d074f2f87 add a fix for issue 1175
If we copy a file followed by an update, it's possible for the parent
manifest to no longer contain the source file of the copy, which could cause
commit to fail. If this happens, we search backwares from the first
parent to find the most likely original revision.
2008-08-10 18:01:03 -05:00
Matt Mackall
879e08f657 commit: simplify file copy logic 2008-08-10 18:01:03 -05:00
Thomas Arendsen Hein
67623d98de Make test-convert-mtn pass on systems where mtn add -R uses different order 2008-08-09 11:46:20 +02:00
Thomas Arendsen Hein
d912d56f04 Make test-hardlinks-safety repeatable and executable 2008-08-08 18:48:26 +02:00
Thomas Arendsen Hein
1b6356a390 convert: Fix debugging output when running multiple commands with xargs. 2008-08-08 18:37:50 +02:00
Doug Philips
8e9dcfc98a Let the notify extension use [diff] options too. 2008-08-07 09:31:42 +02:00
Bernhard Leiner
12387fffd4 add additional bisect tests 2008-08-02 22:10:54 +02:00
Bernhard Leiner
41c8918f2f add additional complex bisect tests (with non-linear history) 2008-08-02 22:11:22 +02:00
Bernhard Leiner
5e75dbce63 Add support for multiple possible bisect results (issue1228, issue1182)
The real reason for both issue is that bisect can not handle cases where there
are multiple possibilities for the result.

Example (from issue1228):
rev 0 -> good
rev 1 -> skipped
rev 2 -> skipped
rev 3 -> skipped
rev 4 -> bad

Note that this patch does not only fix the reported Assertion Error but also
the problem of a non converging bisect:

hg init
for i in `seq 3`; do echo $i > $i; hg add $i; hg ci -m$i; done
hg bisect -b 2
hg bisect -g 0
hg bisect -s

From this state on, you can:
 a) mark as bad forever (non converging!)
 b) mark as good to get an inconsistent state
 c) skip for the Assertion Error

Minor description and code edits by pmezard.
2008-08-02 22:10:10 +02:00
Dov Feldstern
7805ceec07 test symlinks on symlink-capable os but non-capable filesystem (issue1149)
The "real" way to test this is to mount a non-symlink-capable filesystem, and
try working on it; however, I don't know how to mount filesystems as a
non-priveleged user from within the testing framework. So instead, os.symlink
is overridden to raise the exception that would be raised on such a filesystem.
2008-07-31 22:41:19 +03:00
Matt Mackall
bfc02d4c70 util: set_flags should survive failure to create link 2008-08-10 21:55:23 -05:00
Matt Mackall
e03f4e2f73 util: set_flags shouldn't know about repo flag formats 2008-08-10 21:55:06 -05:00
Stefano Tortarolo
5388b1792f Add ancestors and descendants to revlog
This patch adds two methods to revlog:
- ancestors: given a list of revisions returns their ancestors
- descendants: given a list of revisions return their descendants
2008-07-19 18:19:50 +02:00
Martin Geisler
d0e419c6a7 mdiff: compare content of binary files directly
A plain Python string comparison stops when the first mismatch is
found, whereas the call to md5 would need to compute the hash over the
entire string and only then do the comparison.
2008-08-09 02:10:22 +02:00
Thomas Arendsen Hein
b88ac9c741 merge with crew-stable 2008-08-08 18:49:55 +02:00
Christian Ebert
5f30d91aa9 keyword: add verify to nokwcommands after refactor in 3fd7bf0cb4ce
Add test as well.
Thanks to Guy Brand for spotting this.
2008-08-07 09:53:57 +02:00
Dirkjan Ochtman
77285359e6 merge with crew-stable 2008-08-07 09:53:27 +02:00
rubik
0360c09f43 coal/paper: fixed box via an expression for IE < 7 2008-08-06 17:19:14 -05:00
Brendan Cully
a6d56747f2 Fix intermittent broken pipe in test-highlight 2008-08-06 15:08:18 -07:00
Benoit Boissinot
0c4a5ee0aa ui: add an option to prompt for the username when it isn't provided
When ui.askusername is set and not username are specified on the command line,
in hgrc or in the variables $HGUSER or $EMAIL, then hg will prompt for the
username.
Feature requested, and documentation provided by Mark Edgington.
2008-08-06 15:10:05 +02:00
Patrick Mezard
d5320d378a Merge with crew-stable 2008-08-02 23:45:10 +02:00
Patrick Mezard
f278856373 Merge with crew-stable 2008-08-02 14:08:21 +02:00
Patrick Mezard
a7fffbf6bb Merge with crew-stable 2008-07-30 22:33:40 +02:00
Patrick Mezard
c717caba48 Fix subversion tests with svn 1.5 2008-07-30 22:26:41 +02:00
Patrick Mezard
dac1504d71 convert: normalize paths sent to svn get_log (issue 1219) 2008-07-27 17:09:33 +02:00
Patrick Mezard
88ac610380 Merge with crew-stable 2008-07-25 20:47:04 +02:00
Patrick Mezard
da68d00afc convert: remove leading slash from ra.check_path inputs (issue 1236) 2008-07-25 20:43:41 +02:00
Patrick Mezard
beff6fa2b6 convert: restore previous svn transport parent correctly 2008-07-25 20:37:41 +02:00
Dirkjan Ochtman
1c8c354f87 add note about updating one file to update help 2008-07-25 13:26:16 +02:00
Dirkjan Ochtman
1fcc9951d2 churn: fix documentation for churn options 2008-07-25 13:23:59 +02:00
Dhruva Krishnamurthy
efe9469ff7 convert: use git executable only, with subcommands
The latest GIT has some changes in the way it is installed. Only the 'git'
executable need to be in the path. All other commands are treated as sub
commands of 'git'.
2008-07-24 22:44:15 +02:00
Benoit Boissinot
9d636a4b09 make mq and tags hardlink safe
The code didn't check for modes like "r+" or "rb+".
Many thanks to agriffis for noticing it.
2008-07-23 16:08:20 +02:00
Dirkjan Ochtman
26b9b92409 context: get rid of unused changectx.filectxs() method 2008-07-21 13:26:42 +02:00