aboutsummaryrefslogtreecommitdiffstats
path: root/git_deps
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2018-09-09 21:23:12 +0100
committerAdam Spiers <git@adamspiers.org>2018-09-09 22:02:03 +0100
commit27113c37aa2cbbc753d7957414696c09a361b0fd (patch)
treefd273089dc3b0784f47d093c65773af4366d91db /git_deps
parent6cc66e372dfadbc645904fc8ec75724814f498ef (diff)
downloadgit-deps-27113c37aa2cbbc753d7957414696c09a361b0fd.tar.gz
reflow some doc strings
Diffstat (limited to 'git_deps')
-rw-r--r--git_deps/detector.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/git_deps/detector.py b/git_deps/detector.py
index ddbdf9c..9bf9944 100644
--- a/git_deps/detector.py
+++ b/git_deps/detector.py
@@ -10,11 +10,11 @@ from git_deps.errors import InvalidCommitish
class DependencyDetector(object):
- """Class for automatically detecting dependencies between git commits.
- A dependency is inferred by diffing the commit with each of its
- parents, and for each resulting hunk, performing a blame to see
- which commit was responsible for introducing the lines to which
- the hunk was applied.
+ """Class for automatically detecting dependencies between git
+ commits. A dependency is inferred by diffing the commit with each
+ of its parents, and for each resulting hunk, performing a blame to
+ see which commit was responsible for introducing the lines to
+ which the hunk was applied.
Dependencies can be traversed recursively, building a dependency
tree represented (conceptually) by a list of edges.
@@ -132,9 +132,9 @@ class DependencyDetector(object):
self.notify_listeners('all_done')
def find_dependencies_with_parent(self, dependent, parent):
- """Find all dependencies of the given revision caused by the given
- parent commit. This will be called multiple times for merge
- commits which have multiple parents.
+ """Find all dependencies of the given revision caused by the
+ given parent commit. This will be called multiple times for
+ merge commits which have multiple parents.
"""
self.logger.debug(" Finding dependencies of %s via parent %s" %
(dependent.hex[:8], parent.hex[:8]))
@@ -147,9 +147,9 @@ class DependencyDetector(object):
self.blame_hunk(dependent, parent, path, hunk)
def blame_hunk(self, dependent, parent, path, hunk):
- """Run git blame on the parts of the hunk which exist in the older
- commit in the diff. The commits generated by git blame are
- the commits which the newer commit in the diff depends on,
+ """Run git blame on the parts of the hunk which exist in the
+ older commit in the diff. The commits generated by git blame
+ are the commits which the newer commit in the diff depends on,
because without the lines from those commits, the hunk would
not apply correctly.
"""