Trees | Indices | Help |
|
---|
|
object --+ | list --+ | PatchQueue
A series of Patches (e.g. as read from a quilt series file)
|
|||
Inherited from Inherited from |
|
|||
|
|||
|
|||
|
|
|||
|
|||
|
|
|||
Inherited from |
|
|||
Inherited from |
|
Read patch series >>> PatchQueue._read_series(['a/b', 'a -p1', 'a/b -p2'], '.') # doctest:+NORMALIZE_WHITESPACE [<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 >] >>> PatchQueue._read_series(['# foo', 'a/b', '', '# bar'], '.') [<gbp.pq.Patch path='./a/b' topic='a' >]
|
Get the topic from the path's path >>> PatchQueue._get_topic("a/b c") 'a' >>> PatchQueue._get_topic("asdf") >>> PatchQueue._get_topic("/asdf") |
Separate the -p<num> option from the patch name >>> PatchQueue._split_strip("asdf -p1") ('asdf', 1) >>> PatchQueue._split_strip("a/nice/patch") ('a/nice/patch', None) >>> PatchQueue._split_strip("asdf foo") ('asdf foo', None) |
Parse a single line from a patch file >>> PatchQueue._parse_line("a/b -p1", '/tmp/patches') <gbp.pq.Patch path='/tmp/patches/a/b' topic='a' strip=1 > >>> PatchQueue._parse_line("a/b", '.') <gbp.pq.Patch path='./a/b' topic='a' > |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Aug 10 22:03:40 2011 | http://epydoc.sourceforge.net |