DARev.h #3

  • //
  • guest/
  • sam_stafford/
  • deepannotate/
  • DARev.h
  • View
  • Commits
  • Open Download .zip Download (389 B)
class DAInteg;
class StrPtr;

class DARev
{
public:
	DARev( int n, int c );
	~DARev(void);

	DAInteg* addInteg( int how, const StrPtr* f, int s, int e );

	int integCount() { return icount; };
	DAInteg* getInteg( int i );
	int getChange() { return change; };

	void setEdited( bool e ) { isEdited = e; };

private:
	int num;
	int change;
	bool isEdited;

	int icount;
	DAInteg* istack;
};
# Change User Description Committed
#3 6299 Sam Stafford Ditch the attempts at only processing lines that have already been
connected to the starting file.  It seemed to be causing more
backtracking than anything else when the history was complex, and
iterating through all files/revisions works just as well and isn't
nearly as prone to duplicating work.
#2 6298 Sam Stafford Add some new sanity checks.
 One prevents an infaloop observed while
testing against a file with especially twisted history; the other may
help with future tweaks to the zipper algorithm.
#1 6297 Sam Stafford Work so far on "deep annotate".
 Been getting a lot of questions on
this lately from other people working on the same thing; might as well
pool efforts.