def compare (self, other):
return sign (time.mktime (self.date) - time.mktime (other.date))
+
def check_diff_chunk (self, filename, chunk):
removals = []
def note_removal (m):
if removals == []:
return True
-
+ if not os.path.exists (filename):
+ return False
+
contents = open (filename).read ()
for r in removals:
if r not in contents:
Run this file from the CVS directory, with commits from the repository in --git-dir.
-
-
-
""")
p.add_option ("--start",
action='store',
default='',
metavar="FIRST",
dest="start",
- help="all commits starting with FIRST.")
+ help="all commits starting with FIRST (exclusive).")
p.add_option ("--git-dir",
action='store',
try:
previously_done = dict((c, 1) for c in open ('.git-commits-done').read ().split ('\n'))
- except OSError:
+ except IOError:
previously_done = {}
- commits = [c for c in commits if not previously_done.has_key (c.committish)]
commits = [c for c in commits if not previously_done.has_key (c.committish)]
commits = sorted (commits, cmp=Commit.compare)
+ system ('cvs up')
file_adddel = []
collated_log = ''