relpipe-data/examples/mercurial-hg-xmltable-sql.sh
branchv_0
changeset 317 fce3d6290c40
parent 264 d39cfc926f95
equal deleted inserted replaced
316:d7ae02390fac 317:fce3d6290c40
    20 relpipe-in-hgtags() {
    20 relpipe-in-hgtags() {
    21 	hg tags \
    21 	hg tags \
    22 		| sed -E 's/([^ \s]+)\s+([0-9]+):(.*)/\1\n\2\n\3/g' \
    22 		| sed -E 's/([^ \s]+)\s+([0-9]+):(.*)/\1\n\2\n\3/g' \
    23 		| tr \\n \\0 \
    23 		| tr \\n \\0 \
    24 		| relpipe-in-cli \
    24 		| relpipe-in-cli \
    25 			generate-from-stdin hg_tags 3 \
    25 			--relation "hg_tags" \
    26 				tag string \
    26 				--attribute "tag" string \
    27 				revision integer \
    27 				--attribute "revision" integer \
    28 				hash_short string
    28 				--attribute "hash_short" string
    29 }
    29 }
    30 
    30 
    31 
    31 
    32 # just view everything:
    32 # just view everything:
    33 # (relpipe-in-hglog; relpipe-in-hgtags) | relpipe-out-tabular | less -RSi
    33 # (relpipe-in-hglog; relpipe-in-hgtags) | relpipe-out-tabular | less -RSi