Trees | Indices | Help |
|
---|
|
object --+ | list --+ | PatchSeries
A series of Patches as read from a quilt series file).
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|
|||
|
|||
|
|
|||
Inherited from |
|
|||
Inherited from |
|
Read patch series >>> PatchSeries._read_series(['a/b', 'a -p1', 'a/b -p2'], '.') # doctest:+NORMALIZE_WHITESPACE [<gbp.patch_series.Patch path='./a/b' topic='a' >, <gbp.patch_series.Patch path='./a' strip=1 >, <gbp.patch_series.Patch path='./a/b' topic='a' strip=2 >] >>> PatchSeries._read_series(['# foo', 'a/b', '', '# bar'], '.') [<gbp.patch_series.Patch path='./a/b' topic='a' >]
|
Get the topic from the patch's path >>> PatchSeries._get_topic("a/b c") 'a' >>> PatchSeries._get_topic("asdf") >>> PatchSeries._get_topic("/asdf") |
Separate the -p<num> option from the patch name >>> PatchSeries._split_strip("asdf -p1") ('asdf', 1) >>> PatchSeries._split_strip("a/nice/patch") ('a/nice/patch', None) >>> PatchSeries._split_strip("asdf foo") ('asdf foo', None) |
Parse a single line from a series file >>> PatchSeries._parse_line("a/b -p1", '/tmp/patches') <gbp.patch_series.Patch path='/tmp/patches/a/b' topic='a' strip=1 > >>> PatchSeries._parse_line("a/b", '.') <gbp.patch_series.Patch path='./a/b' topic='a' > |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Dec 31 11:30:00 2016 | http://epydoc.sourceforge.net |