Matt Mackall
a65ef7bc5d
util: add sort helper
2008-06-27 18:28:45 -05:00
Matt Mackall
bc715be859
add __len__ and __iter__ methods to repo and revlog
2008-06-26 14:35:50 -05:00
Benoit Boissinot
7043af3e09
make sure not to reuse an existing append-file from a previous failed pull
2008-03-14 21:35:49 +01:00
Joel Rosdahl
4f8012378a
Remove unused imports
2008-03-06 22:23:41 +01:00
Joel Rosdahl
5dae3059a0
Expand import * to allow Pyflakes to find problems
2008-03-06 22:23:26 +01:00
Matt Mackall
40a16e2ab7
changelog: fix decoding of extra
...
(spotted by pmezard)
2008-01-03 13:46:39 -06:00
Matt Mackall
c29af0c762
changelog: inline trivial call for extra data unescaping
2007-12-27 23:55:40 -06:00
Matt Mackall
295be4678d
changelog: remove extract function
2007-12-27 23:55:40 -06:00
Matt Mackall
0804290ab7
revlog: fix caching of buffer objects
2007-10-11 00:46:53 -05:00
Thomas Arendsen Hein
a974129de3
merge with crew-stable
2007-07-21 17:37:39 +02:00
Benoit Boissinot
8c722d66b2
fix bogus close spotted by pychecker (no close() in global scope)
2007-07-20 09:44:50 +02:00
Benoit Boissinot
84d45c7794
fix unused variables reported by pychecker
2007-07-20 09:31:32 +02:00
Brendan Cully
864d59c393
python 2.3 does not have sorted
2007-07-06 10:29:09 -07:00
Brendan Cully
ee78cfbb39
Sort changelog extra dict to avoid possible nondeterminism
2007-07-06 10:22:22 -07:00
Thomas Arendsen Hein
4d29c6dc8e
Updated copyright notices and add "and others" to "hg version"
2007-06-19 08:51:34 +02:00
Matt Mackall
4ae8d87bd3
changelog: optimize delayed updates for clone vs pull
...
pull index updates get redirected to memory, then appended on finalize
clone index updates get sent to 00changelog.i.a, then renamed on finalize
2007-03-24 02:47:33 -05:00
Matt Mackall
40a0da6fd9
restructure changelog file appending
...
- make appending code proper part of changelog with delayupdate/finalize
- use simplified appender that tracks pending data in memory
- eliminate old appendfile and helper classes
- update addchangegroup to use new interface and reuse the existing changelog
2007-03-22 23:37:44 -05:00
Matt Mackall
04561e556e
revlog: simplify revlog version handling
...
- pass the default version as an attribute on the opener
- eliminate config option mess
2007-03-22 19:52:38 -05:00
Matt Mackall
b4f6965b1d
revlog: don't pass datafile as an argument
2007-03-22 19:12:03 -05:00
Matt Mackall
e896adead6
Merge with -stable, fix small test failure
2007-03-14 01:26:09 -05:00
Alexis S. L. Carvalho
fd69fe8d91
"default" is the default branch name
2007-03-13 15:02:33 -03:00
Matt Mackall
296d6a7cb8
Simplify i18n imports
2006-12-14 20:25:19 -06:00
Matt Mackall
f17a4e1934
Replace demandload with new demandimport
2006-12-13 13:27:09 -06:00
Matt Mackall
82c5ca8fac
Handle transcoding of username and description in changelog
2006-12-03 16:16:33 -06:00
Matt Mackall
230bc8d278
imported patch b1
2006-10-17 18:01:14 -05:00
Benoit Boissinot
74c2bfe9b9
[extendedchangelog] add extra metadata in the changelog entry
...
- add a third item in the date field that holds arbitrary
key:value items
2006-10-02 22:35:52 +02:00
Benoit Boissinot
eeb30a5065
[extendedchangelog] encode/decode function
...
encode '\n', '\r' and '\0'
2006-10-02 22:35:37 +02:00
Benoit Boissinot
455c371cc5
document changelog format
2006-09-09 12:56:08 +02:00
Vadim Gelfer
dc377b58c1
update copyrights.
2006-08-12 12:30:02 -07:00
Benoit Boissinot
eb4253c05c
validate the resulting date in parsedate
2006-06-30 18:48:06 +02:00
Jose M. Prieto
9f3a9a5e6e
Allow the use of human readable dates (issue 251)
2006-06-30 18:47:35 +02:00
Thomas Arendsen Hein
c9a89940a1
Replaced 0 with REVLOGV0 where this meaning is used.
2006-04-27 21:16:46 +02:00
Alexis S. L. Carvalho
8babef5ceb
Fix timezone check.
...
According to http://en.wikipedia.org/wiki/List_of_time_zones
timezones go from UTC-12 to UTC+14.
2006-04-26 22:15:01 -07:00
mason@suse.com
ed26ff0cae
Implement revlogng.
...
revlogng results in smaller indexes, can address larger data files, and
supports flags and version numbers.
By default the original revlog format is used. To use the new format,
use the following .hgrc field:
[revlog]
# format choices are 0 (classic revlog format) and 1 revlogng
format=1
2006-04-04 16:38:43 -04:00
Benoit Boissinot
06e39e559b
i18n part2: use '_' for all strings who are part of the user interface
2005-10-18 18:38:39 -07:00
Benoit Boissinot
e38e94088a
i18n first part: make '_' available for files who need it
2005-10-18 18:37:48 -07:00
Matt Mackall
3483c5ba0e
Fix data reported for the nullid changeset
2005-09-29 15:18:32 -07:00
Bryan O'Sullivan
047ff37290
Some repos represent a date as a float.
2005-09-23 07:36:30 -07:00
Bryan O'Sullivan
566df77193
Clean up date and timezone handling.
...
We used to pass changelog dates around as a "unixtime timezone" string
containing a pair of encoded ints. Now, they get passed around as a
(unixtime, timezone) tuple of numbers, which makes much more sense.
2005-09-22 23:19:47 -07:00
Bryan O'Sullivan
75cd295fec
Commit date validation: more stringent checks, more useful error messages.
2005-09-04 14:47:02 -07:00
Bryan O'Sullivan
2bd0c42ab1
Date validation must check for 32-bit width. Don't use assert to check.
2005-09-03 23:51:53 -07:00
Bryan O'Sullivan
b15e572eba
Make date/timezone validation in changelog.add more robust. Add test.
2005-09-03 23:28:15 -07:00
Bryan O'Sullivan
ddfc2c5a49
Validate user input of dates when adding a changelog entry.
2005-09-03 23:08:39 -07:00
mpm@selenic.com
665623c3ec
changelog: adjust imports, comment
2005-08-27 15:05:43 -07:00
mpm@selenic.com
e175fdde9b
Break apart hg.py
...
- move the various parts of hg.py into their own files
- create node.py to store node manipulation functions
2005-08-27 14:21:25 -07:00