Commit Graph

671 Commits

Author SHA1 Message Date
Matt Mackall
5fc766530e context: add __repr__ methods 2006-09-22 16:12:39 -05:00
Matt Mackall
bcf2c903fb filectx: lazy linkrev usage 2006-09-22 16:01:14 -05:00
Matt Mackall
5673fe334f restore filectx.changectx() method 2006-09-22 15:34:02 -05:00
Brendan Cully
15222c4792 filectx.annotate: return filectx for each line instead of rev 2006-09-22 08:19:25 -07:00
Brendan Cully
5e02efd5d4 Make filectx lazier - some users never use filenode 2006-09-22 08:19:25 -07:00
Brendan Cully
684cd993b8 context: handle fileid or changeid == 0 2006-09-22 08:19:25 -07:00
Matt Mackall
79aed53c85 Abstract ancestor algorithm into generic function
Make depth calculation non-recursive
Add simple shortcut for linear ancestry

Convert context to use ancestor function
 make memoized parents function

Convert revlog to use ancestor function
2006-09-20 16:50:50 -05:00
Matt Mackall
01ca9fd363 Merge with crew 2006-09-19 15:28:13 -05:00
Matt Mackall
0650997740 filectx: add rename-aware ancestor algorithm
This code works but may trigger recursion depth issues
2006-09-19 14:58:54 -05:00
Matt Mackall
19ce6dc65c changectx: add ancestor function 2006-09-17 22:59:33 -05:00
Matt Mackall
ce81b072ef filectx: allow passing filelog in init to avoid opening new filelogs 2006-09-17 22:58:11 -05:00
Matt Mackall
50e42b8388 filelog: make metadata method private 2006-09-17 22:38:06 -05:00
Matt Mackall
06695a7cb9 filectx: add rename traversal for parents() 2006-09-17 22:20:44 -05:00
Brendan Cully
8104550ace Move defaultrev into changectx
This also causes tag on a repository with no working directory
to default to tip.
2006-09-15 15:23:52 -07:00
Vadim Gelfer
dc377b58c1 update copyrights. 2006-08-12 12:30:02 -07:00
Benoit Boissinot
bb31345eb8 fix filectxt to really work
- use a context instead of changelog.read
- changectx._id is not necessary
2006-07-17 01:59:06 +02:00
Benoit Boissinot
788bbdea72 context.py: various fixes
- use a normal changeset instead of a context
- define _filenode instead of _node to match the else clause
2006-07-16 16:40:24 +02:00
Benoit Boissinot
fe197b5f4f context.py: filectxs was using a keyword arg, add it to filectx 2006-07-16 16:39:03 +02:00
Benoit Boissinot
d9acb13f0c context.py: self.repo is not defined, change to self._repo 2006-07-16 16:39:02 +02:00
Matt Mackall
b2760f583c Convert hg annotate to context api 2006-06-28 17:42:17 -05:00
Matt Mackall
092ee51a9a Add context.py: changeset and file revision contexts 2006-06-28 17:07:46 -05:00