# # # patch "monotone.py" # from [2c8f2ee13be9ffd0192967c1ea4a6b51593f445b] # to [f53d3f9e6a7bf02ca1b1bebedd8df356afe1dc20] # ============================================================ --- monotone.py 2c8f2ee13be9ffd0192967c1ea4a6b51593f445b +++ monotone.py f53d3f9e6a7bf02ca1b1bebedd8df356afe1dc20 @@ -113,6 +113,8 @@ def ancestry(self, id, limit=0): rv = [] entry = None + command = self.base_command + " log " + pipes.quote(id) + if limit > 0: self.base_command += " --depth=%d" % (limit) iterator = utility.iter_command(self.base_command + " log %s" % (pipes.quote(id))) for line in iterator: if dash_re.match(line): @@ -121,7 +123,6 @@ if not line: rv.append(entry) entry = None - if limit > 0 and len(rv) >= limit: break continue m = log_entry_re.match(line) if m: