Commit Graph

541 Commits

Author SHA1 Message Date
Benoit Boissinot
3ef88afae1 fix issue with strip() for revlog with non-monotonic linkrevs (issue1342)
extra nodes should always be included, do the call after the pruning
2008-10-18 20:25:45 +02:00
Matt Mackall
d06459495e rename: handle renaming to a target marked removed 2008-10-18 04:26:09 -05:00
Matt Mackall
d8fdfa3f85 diff: pass contexts to status
Allow status() to take contexts as well as nodes. This lets us avoid
unpacking manifests multiple times and intelligently unpack manifests
in revision order. Also, we can avoid unpacking manifests at all when
there are no changes in the working directory.
2008-10-12 15:21:08 -05:00
Patrick Mezard
ad3b5c4ec9 context: improve memctx documentation 2008-10-11 13:07:29 +02:00
Patrick Mezard
e8a232c5c8 Show added files as "added" in editor commit message (issue 1330) 2008-10-09 14:16:17 +02:00
Matt Mackall
11fc6ebc37 status: don't warn about missing files present in base revision (issue1323) 2008-10-08 16:22:10 -05:00
Patrick Mezard
ddd1cf2de8 Merge with crew-stable 2008-10-06 13:51:36 +02:00
Bernhard Leiner
f1a8298e61 Add missing catch of a TypeError 2008-10-03 23:13:03 +02:00
Benoit Boissinot
f4db28e2cc Backed out changeset 1aa58165fc81 (see issue916 for details) 2008-09-10 08:48:23 +02:00
Benoit Boissinot
416e5f2ef9 tag: without a checkout, base the tag changeset on tip instead of nullid
issue916
2008-09-08 14:04:10 +02:00
Peter Ruibal
30a2036f9e use Exception(args)-style raising consistently (py3k compatibility) 2008-09-08 13:07:00 +02:00
Martin Geisler
28fb695e9a i18n: mark strings for translation in Mercurial 2008-08-31 16:12:02 +02:00
Matt Mackall
e03f4e2f73 util: set_flags shouldn't know about repo flag formats 2008-08-10 21:55:06 -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
Dirkjan Ochtman
3e077a5422 strip trailing whitespace, replace tabs by spaces 2008-08-21 11:35:17 +02:00
Patrick Mezard
c7f6f81b90 Ignore dummy copies in dirstate and localrepo.filecommit() 2008-06-15 13:01:03 +02:00
Patrick Mezard
53bdaf2c6b localrepo: forbid nullid copyrev 2008-04-14 22:31:33 +02:00
Benoit Boissinot
46509e2ba0 fix error spotted by pychecker 2008-03-30 20:21:46 +02:00
Martin Geisler
bf6b9a2dd1 Begin commit messages with two empty lines.
This makes editors like Emacs wrap the commit message correctly. With
no empty line between the commit message and the 'HG:' lines, the
'HG:' lines would be wrapped as if they belonged to the commit message
and so lose their significance to Mercurial.

This makes no difference to what is stored by the commit -- whitespace
was already stripped from the beginning and end of commit messages.
2008-03-29 23:05:45 +01:00
Matt Mackall
3a7193d270 streamclone: fold in localrepo.storefiles 2008-08-13 20:18:44 -05:00
Matt Mackall
2793481364 store: change handling of decoding errors 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
Stefano Tortarolo
61967725af make commit fail when committing unresolved files 2008-08-13 20:18:40 -05:00
Dirkjan Ochtman
6b51480caa merge with crew-stable 2008-08-12 17:47:08 +02:00
Matt Mackall
08b29d9875 Merge with stable
Simplify the copy search algorithm
2008-08-10 18:38:43 -05:00
Adrian Buehlmann
904617b7d8 introduce store classes
move store walking from streamclone.py into store.py
2008-07-24 16:32:52 +02:00
Adrian Buehlmann
34afc460b4 move filename encoding functions from util.py to new store.py 2008-07-24 16:32:51 +02:00
Matt Mackall
8cb2b4a288 dirstate.walk: push sorting up 2008-07-22 13:03:19 -05:00
Matt Mackall
b4ff221e3e minor status fixups 2008-07-22 13:00:22 -05:00
Patrick Mezard
ba0d5cdad9 localrepo: fix status() typos from 854b907527e5a and 51f105e04825 2008-07-20 19:09:00 +02:00
Christian Boos
3bad7927f6 localrepo: do not modify a dictionary being iterated in status() 2008-07-18 12:31:40 +02:00
Matt Mackall
75293bf8bd status: various cleanups
- rename lookup to cmp for formatting reasons
- reduce nesting level of fixup code
- sort fixup results
- group comparison cases in a separate clause
- make list initialization simpler
- delay flag lookup for working directory
- sort removed list in comparison
- avoid sorting already sorted lists
2008-07-11 18:46:02 -05:00
Matt Mackall
7157575a82 status: use contexts 2008-07-11 18:46:02 -05:00
Matt Mackall
f1402a6652 context: add walk method 2008-06-27 19:25:48 -05:00
Matt Mackall
a65ef7bc5d util: add sort helper 2008-06-27 18:28:45 -05:00
Matt Mackall
d4ab55a92b status: clean up all users for unknown files 2008-06-27 13:43:29 -05:00
Matt Mackall
4382d6c797 dirstate: fold statwalk and walk 2008-06-26 14:35:50 -05:00
Matt Mackall
73c76dd164 repo.status: eliminate list_ 2008-06-26 14:35:50 -05:00
Matt Mackall
bc715be859 add __len__ and __iter__ methods to repo and revlog 2008-06-26 14:35:50 -05:00
Matt Mackall
fbb5127472 use repo[changeid] to get a changectx 2008-06-26 14:35:46 -05:00
Matt Mackall
d462e1fc26 simplify flag handling
add _checklink var to dirstate
introduce dirstate.flagfunc
switch users of util.execfunc/linkfunc to flagfunc
change manifestdict.set to take a flags string
change ctx.fileflags to ctx.flags
change gitmode func to a dict
remove util.execfunc/linkfunc
2008-06-26 13:46:34 -05:00
Matt Mackall
2bd0fe0371 context: clean up parents() 2008-06-26 13:46:33 -05:00
Matt Mackall
5867ff1667 use repo.changectx(None) to get a workingctx 2008-06-26 13:46:29 -05:00
Matt Mackall
9d556277c8 context: avoid using None for working parent 2008-06-25 17:35:20 -05:00
Matt Mackall
9ab99468a9 lookup: optimize '.'
Remove error messages as behavior is documented in hg help revs
2008-06-25 17:33:34 -05:00
Dirkjan Ochtman
8f93fcc6fc fix default branchheads() argument (69dbb521053b was very broken) 2008-06-25 10:54:48 +02:00
Dirkjan Ochtman
3bd7f09e49 tighter default argument selection in localrepo.branchheads() 2008-06-24 09:36:24 +02:00