You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Mikolaj Machowski <mi...@wp.pl> on 2005/12/21 18:06:32 UTC
ignore during svn update
Hello,
How to ignore certain directories/files during ``svn update``?
All ignore commands in docs are for status, add, import.
TIA
m.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: [SPAM] Re: ignore during svn update
Posted by Bart Robinson <lo...@pobox.com>.
On 2005-12-28 Mikolaj Machowski <mi...@wp.pl> wrote:
> Dnia Åroda, 28 grudnia 2005 01:10, Bart Robinson napisaÅ:
> > If you can reorg your repos, you can consider putting the "po"
> > files in a different "project" and then incorporate them into
> > where they use to be with svn:externals. Then you would update
> > with --ignore-externals to skip them.
> > http://svnbook.red-bean.com/en/1.1/ch07s04.html
>
> I cannot reorganize repos. Yeah, I think moving po outside of main
> project would be good thing but I am only merely user.
>
> > > #!/bin/bash
> > > # vim:set ft=sh:
> > >
> > > for i in `ls`; do
> > > if [ $i != 'po' -a $i != 'loop' ]; then
> > > echo $i
> > > svn up $i
> > > fi;
> > > done
>
> This is not good solution. Each item is updated separately which takes
> long, long time. Much simpler solution (untested yet):
>
> #!/bin/bash
> # vim:set ft=sh:
> svn update --non-recursive .
> svn up `find . -maxdepth 1 -type d | grep -v "\.\/po\|\.$\|svn`
>
> m.
You can try getting the list to update by first doing "svn stat
-u" and filtering out any po files.
-- bart
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: [SPAM] Re: ignore during svn update
Posted by Mikolaj Machowski <mi...@wp.pl>.
Dnia środa, 28 grudnia 2005 01:10, Bart Robinson napisał:
> If you can reorg your repos, you can consider putting the "po"
> files in a different "project" and then incorporate them into
> where they use to be with svn:externals. Then you would update
> with --ignore-externals to skip them.
> http://svnbook.red-bean.com/en/1.1/ch07s04.html
I cannot reorganize repos. Yeah, I think moving po outside of main
project would be good thing but I am only merely user.
> > #!/bin/bash
> > # vim:set ft=sh:
> >
> > for i in `ls`; do
> > if [ $i != 'po' -a $i != 'loop' ]; then
> > echo $i
> > svn up $i
> > fi;
> > done
This is not good solution. Each item is updated separately which takes
long, long time. Much simpler solution (untested yet):
#!/bin/bash
# vim:set ft=sh:
svn update --non-recursive .
svn up `find . -maxdepth 1 -type d | grep -v "\.\/po\|\.$\|svn`
m.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: ignore during svn update
Posted by Bart Robinson <lo...@pobox.com>.
If you can reorg your repos, you can consider putting the "po"
files in a different "project" and then incorporate them into
where they use to be with svn:externals. Then you would update
with --ignore-externals to skip them.
http://svnbook.red-bean.com/en/1.1/ch07s04.html
-- bart
On 2005-12-22 Mikolaj Machowski <mi...@wp.pl> wrote:
> Dnia ¶roda, 21 grudnia 2005 21:57, Ryan Schmidt napisa³:
> > On Dec 21, 2005, at 19:06, Mikolaj Machowski wrote:
> > > How to ignore certain directories/files during ``svn update``?
> > >
> > > All ignore commands in docs are for status, add, import.
> >
> > svn update <item>
> >
> > where <item> is a file or directory you don't want to ignore. Repeat
> > for all such items.
> >
> > If that's too inconvenient, perhaps you could give us an example of
> > what you want to accomplish with this. Maybe that will help us
> > formulate a better answer.
>
> Yes. This is inconvenient because I don't want to update only one
> directory: "po". Complete set of translation files in repository are
> recreated at least once daily and I don't want to update 45M of .po
> files in which I am completely uninterested (almost 25% of repository).
>
> Hmm?
>
> #!/bin/bash
> # vim:set ft=sh:
>
> for i in `ls`; do
> if [ $i != 'po' -a $i != 'loop' ]; then
> echo $i
> svn up $i
> fi;
> done
>
> Is this the only solution?
>
> m.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: ignore during svn update
Posted by Mikolaj Machowski <mi...@wp.pl>.
Dnia środa, 21 grudnia 2005 21:57, Ryan Schmidt napisał:
> On Dec 21, 2005, at 19:06, Mikolaj Machowski wrote:
> > How to ignore certain directories/files during ``svn update``?
> >
> > All ignore commands in docs are for status, add, import.
>
> svn update <item>
>
> where <item> is a file or directory you don't want to ignore. Repeat
> for all such items.
>
> If that's too inconvenient, perhaps you could give us an example of
> what you want to accomplish with this. Maybe that will help us
> formulate a better answer.
Yes. This is inconvenient because I don't want to update only one
directory: "po". Complete set of translation files in repository are
recreated at least once daily and I don't want to update 45M of .po
files in which I am completely uninterested (almost 25% of repository).
Hmm?
#!/bin/bash
# vim:set ft=sh:
for i in `ls`; do
if [ $i != 'po' -a $i != 'loop' ]; then
echo $i
svn up $i
fi;
done
Is this the only solution?
m.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: ignore during svn update
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Dec 21, 2005, at 19:06, Mikolaj Machowski wrote:
> How to ignore certain directories/files during ``svn update``?
>
> All ignore commands in docs are for status, add, import.
svn update <item>
where <item> is a file or directory you don't want to ignore. Repeat
for all such items.
If that's too inconvenient, perhaps you could give us an example of
what you want to accomplish with this. Maybe that will help us
formulate a better answer.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org