I think this is all that's necessary. (The line that modifies
self.base_command looks like it was a mistake anyway.)
--- monotone.py
+++ monotone.py
@@ -113,9 +113,9 @@
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)))
+ base_command = self.base_command
+ if limit > 0: base_command += " --depth=%d" % (limit)
+ iterator = utility.iter_command(base_command + " log
--revision=%s" % (pipes.quote(id)))
for line in iterator:
if dash_re.match(line):
entry = {}
_______________________________________________
Monotone-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/monotone-devel