prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  repro: --all-pipelines doesn't do anything.
  
  
  </issue>
  <code>
  [start of dvc/command/repro.py]
  1 import os
  2 
  3 from dvc.command.base import CmdBase
  4 from dvc.command.status import CmdDataStatus
  5 from dvc.exceptions import DvcException
  6 
  7 
  8 class CmdRepro(CmdBase):
  9     def run(self):
  10         recursive = not self.args.single_item
  11         saved_dir = os.path.realpath(os.curdir)
  12         if self.args.cwd:
  13             os.chdir(self.args.cwd)
  14 
  15         ret = 0
  16         for target in self.args.targets:
  17             try:
  18                 stages = self.project.reproduce(
  19                                target,
  20                                recursive=recursive,
  21                                force=self.args.force,
  22                                dry=self.args.dry,
  23                                interactive=self.args.interactive,
  24                                pipeline=self.args.pipeline,
  25                                all_pipelines=self.args.all_pipelines,
  26                                ignore_build_cache=self.args.ignore_build_cache)
  27 
  28                 if len(stages) == 0:
  29                     self.project.logger.info(CmdDataStatus.UP_TO_DATE_MSG)
  30 
  31                 if self.args.metrics:
  32                     self.project.metrics_show()
  33             except DvcException as ex:
  34                 msg = 'Failed to reproduce \'{}\''.format(target)
  35                 self.project.logger.error(msg, ex)
  36                 ret = 1
  37                 break
  38 
  39         os.chdir(saved_dir)
  40         return ret
  41
  [end of dvc/command/repro.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/dvc/command/repro.py b/dvc/command/repro.py
  --- a/dvc/command/repro.py
  +++ b/dvc/command/repro.py
  @@ -12,6 +12,10 @@
           if self.args.cwd:
               os.chdir(self.args.cwd)
   
  +        # Dirty hack so the for loop below can at least enter once
  +        if self.args.all_pipelines:
  +            self.args.targets = [None]
  +
           ret = 0
           for target in self.args.targets:
               try:
  
verification_info: {"golden_diff": "diff --git a/dvc/command/repro.py b/dvc/command/repro.py\n--- a/dvc/command/repro.py\n+++ b/dvc/command/repro.py\n@@ -12,6 +12,10 @@\n         if self.args.cwd:\n             os.chdir(self.args.cwd)\n \n+        # Dirty hack so the for loop below can at least enter once\n+        if self.args.all_pipelines:\n+            self.args.targets = [None]\n+\n         ret = 0\n         for target in self.args.targets:\n             try:\n", "issue": "repro: --all-pipelines doesn't do anything.\n\n", "before_files": [{"content": "import os\n\nfrom dvc.command.base import CmdBase\nfrom dvc.command.status import CmdDataStatus\nfrom dvc.exceptions import DvcException\n\n\nclass CmdRepro(CmdBase):\n    def run(self):\n        recursive = not self.args.single_item\n        saved_dir = os.path.realpath(os.curdir)\n        if self.args.cwd:\n            os.chdir(self.args.cwd)\n\n        ret = 0\n        for target in self.args.targets:\n            try:\n                stages = self.project.reproduce(\n                               target,\n                               recursive=recursive,\n                               force=self.args.force,\n                               dry=self.args.dry,\n                               interactive=self.args.interactive,\n                               pipeline=self.args.pipeline,\n                               all_pipelines=self.args.all_pipelines,\n                               ignore_build_cache=self.args.ignore_build_cache)\n\n                if len(stages) == 0:\n                    self.project.logger.info(CmdDataStatus.UP_TO_DATE_MSG)\n\n                if self.args.metrics:\n                    self.project.metrics_show()\n            except DvcException as ex:\n                msg = 'Failed to reproduce \\'{}\\''.format(target)\n                self.project.logger.error(msg, ex)\n                ret = 1\n                break\n\n        os.chdir(saved_dir)\n        return ret\n", "path": "dvc/command/repro.py"}]}