Discussion:
svndumpfilter bash_completion does not show --pattern
ycdtosa
2017-09-19 21:08:09 UTC
Permalink
Hi. i have been nasty with some subversion dump files,
and that got me using svndumpfilter quite a lot.

One of the thinks that i learn is that --pattern does not show up
when using bash_completion

I think this is a (small) bug.
Can anyone confirm it.

Also, i did peek into
http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/bash_completion

and while i can find other options at _svndumpfilter ()

cmdOpts=
case ${COMP_WORDS[1]} in
exclude|include)
cmdOpts="--drop-empty-revs --renumber-revs
--skip-missing-merge-sources --targets
--preserve-revprops --quiet"
;;


--pattern is missing from the list.
Branko Čibej
2017-09-20 05:44:54 UTC
Permalink
Post by ycdtosa
Hi. i have been nasty with some subversion dump files,
and that got me using svndumpfilter quite a lot.
One of the thinks that i learn is that --pattern does not show up
when using bash_completion
I think this is a (small) bug.
Can anyone confirm it.
Also, i did peek into 
http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/bash_completion
and while i can find other options at _svndumpfilter ()
cmdOpts=
case ${COMP_WORDS[1]} in
exclude|include)
cmdOpts="--drop-empty-revs --renumber-revs
--skip-missing-merge-sources --targets
--preserve-revprops --quiet"
;;
--pattern is missing from the list.
Would you mind making a patch for that?

It's a pity that the bash-completion script is updated manually ...
ideally we'd auto-generate it from the sources.

(That's a hint for anyone who'd like to contribute a fairly easy patch :)

-- Brane
ycdtosa
2017-09-20 11:43:31 UTC
Permalink
not at all.

I just started, once i found where the script was installed, i just did a
small change there,
and so far it works! :-)

There are two options to patch this.

1. do not disrupt the existing code: ( in my current installed code that
would be... )
1191c1191,1192
< --preserve-revprops --quiet"
---
Post by ycdtosa
--preserve-revprops --quiet
--pattern"
2. do keep the parameters in the same order that they appear on the docs.

1189c1189
< cmdOpts="--drop-empty-revs --renumber-revs
---
Post by ycdtosa
cmdOpts="--drop-empty-revs --pattern --renumber-revs
Not sure which one is the preferred. I still have to read the docs about
how to prepare a proper patch, and if i do have to take this to dev@
and send the patch.
Post by ycdtosa
Post by ycdtosa
Hi. i have been nasty with some subversion dump files,
and that got me using svndumpfilter quite a lot.
One of the thinks that i learn is that --pattern does not show up
when using bash_completion
I think this is a (small) bug.
Can anyone confirm it.
Also, i did peek into
http://svn.apache.org/repos/asf/subversion/trunk/tools/
client-side/bash_completion
Post by ycdtosa
and while i can find other options at _svndumpfilter ()
cmdOpts=
case ${COMP_WORDS[1]} in
exclude|include)
cmdOpts="--drop-empty-revs --renumber-revs
--skip-missing-merge-sources --targets
--preserve-revprops --quiet"
;;
--pattern is missing from the list.
Would you mind making a patch for that?
It's a pity that the bash-completion script is updated manually ...
ideally we'd auto-generate it from the sources.
(That's a hint for anyone who'd like to contribute a fairly easy patch :)
-- Brane
ycdtosa
2017-09-20 15:27:26 UTC
Permalink
Sorry for the previous poorly formatted email
I just jumped to dev@ mailing list and attached a patch.

not the one you hinted at, though ! :-)
Post by ycdtosa
not at all.
I just started, once i found where the script was installed, i just did a
small change there,
and so far it works! :-)
There are two options to patch this.
1. do not disrupt the existing code: ( in my current installed code that
would be... )
1191c1191,1192
< --preserve-revprops --quiet"
---
Post by ycdtosa
--preserve-revprops --quiet
--pattern"
2. do keep the parameters in the same order that they appear on the docs.
1189c1189
< cmdOpts="--drop-empty-revs --renumber-revs
---
Post by ycdtosa
cmdOpts="--drop-empty-revs --pattern --renumber-revs
Not sure which one is the preferred. I still have to read the docs about
and send the patch.
Post by ycdtosa
Post by ycdtosa
Hi. i have been nasty with some subversion dump files,
and that got me using svndumpfilter quite a lot.
One of the thinks that i learn is that --pattern does not show up
when using bash_completion
I think this is a (small) bug.
Can anyone confirm it.
Also, i did peek into
http://svn.apache.org/repos/asf/subversion/trunk/tools/clien
t-side/bash_completion
Post by ycdtosa
and while i can find other options at _svndumpfilter ()
cmdOpts=
case ${COMP_WORDS[1]} in
exclude|include)
cmdOpts="--drop-empty-revs --renumber-revs
--skip-missing-merge-sources --targets
--preserve-revprops --quiet"
;;
--pattern is missing from the list.
Would you mind making a patch for that?
It's a pity that the bash-completion script is updated manually ...
ideally we'd auto-generate it from the sources.
(That's a hint for anyone who'd like to contribute a fairly easy patch :)
-- Brane
Loading...