aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/pq.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-07-30 10:17:25 +0200
committerGuido Günther <agx@sigxcpu.org>2011-07-30 14:38:32 +0200
commit1804b1f64d33291f1b6832384d56a7ed16fa47e6 (patch)
tree0b8ba7b28b4039ddb2954691701b8552e2b228e8 /gbp/pq.py
parent2fbac773f79a4c6cf074e29804244ea90b9b1cb4 (diff)
Epydoc indentation
Git-Dch: Ignore
Diffstat (limited to 'gbp/pq.py')
-rw-r--r--gbp/pq.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/gbp/pq.py b/gbp/pq.py
index 39eb6a07..9cb85ae2 100644
--- a/gbp/pq.py
+++ b/gbp/pq.py
@@ -63,10 +63,6 @@ class PatchQueue(list):
def _read_series(klass, series, patch_dir):
"""
Read patch series
- @param series: series of patches in quilt format
- @type series: iterable of strings
- @param patch_dir: path prefix to prepend to each patch path
- @type patch_dir: string
>>> PatchQueue._read_series(['a/b', \
'a -p1', \
@@ -74,6 +70,11 @@ class PatchQueue(list):
[<gbp.pq.Patch path='./a/b' topic='a' >,
<gbp.pq.Patch path='./a' strip=1 >,
<gbp.pq.Patch path='./a/b' topic='a' strip=2 >]
+
+ @param series: series of patches in quilt format
+ @type series: iterable of strings
+ @param patch_dir: path prefix to prepend to each patch path
+ @type patch_dir: string
"""
queue = PatchQueue()
@@ -85,6 +86,7 @@ class PatchQueue(list):
def _get_topic(line):
"""
Get the topic from the path's path
+
>>> PatchQueue._get_topic("a/b c")
'a'
>>> PatchQueue._get_topic("asdf")