Hi all. Every day i update my pywikipedia folder on toolserver by typing: svn checkout http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia How can i make a cron for updating every day at 10:03 p.m? Thanks in advance.
On 04/10/2012 03:23 PM, محمد الجداوي wrote:
Hi all. Every day i update my pywikipedia folder on toolserver by typing: svn checkout http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia How can i make a cron for updating every day at 10:03 p.m? Thanks in advance.
I'm not sure why you would be issuing "svn checkout" daily -- is there a reason you cannot "svn update"? Try this line (run "crontab -e" to open the editor):
03 22 * * * cd pywikipedia && svn update
On 10/04/12 21:39, Christopher David Howie wrote:
On 04/10/2012 03:23 PM, محمد الجداوي wrote:
Hi all. Every day i update my pywikipedia folder on toolserver by typing: svn checkout http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia How can i make a cron for updating every day at 10:03 p.m? Thanks in advance.
I'm not sure why you would be issuing "svn checkout" daily -- is there a reason you cannot "svn update"?
In svn a checkout of its remote location to an existing checkout is equivalente to svn up it. In most other vcs he wouldn't have been able to do that.
IMPORTANT INFORMATION/DISCLAIMER
I like it, although a bit large IMHO. I guess it can be freely adapted and reused?
Regards
So, Is there a difference between "svn update" and "svn checkout"?
On Tue, Apr 10, 2012 at 10:39 PM, Platonides platonides@gmail.com wrote:
On 10/04/12 21:39, Christopher David Howie wrote:
On 04/10/2012 03:23 PM, محمد الجداوي wrote:
Hi all. Every day i update my pywikipedia folder on toolserver by typing: svn checkout http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia How can i make a cron for updating every day at 10:03 p.m? Thanks in advance.
I'm not sure why you would be issuing "svn checkout" daily -- is there a reason you cannot "svn update"?
In svn a checkout of its remote location to an existing checkout is equivalente to svn up it. In most other vcs he wouldn't have been able to do that.
IMPORTANT INFORMATION/DISCLAIMER
I like it, although a bit large IMHO. I guess it can be freely adapted and reused?
Regards
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
On 04/10/2012 04:45 PM, محمد الجداوي wrote:
So, Is there a difference between "svn update" and "svn checkout"?
I was under the impression that there was, but apparently not.
I don't see any difference. In some forums, users said "in checkout command, all files in repository are reviewed; in update, only search for the differences"[1]
Well, it's a forum, but IMHO "svn up" is the best option to put in the crontab.
Regards
Refs [1] http://lavag.org/topic/10124-subversion-svn-checkout-vs-update/page__view__f...
2012/4/10 محمد الجداوي nesr17@gmail.com:
So, Is there a difference between "svn update" and "svn checkout"?
On Tue, Apr 10, 2012 at 10:39 PM, Platonides platonides@gmail.com wrote:
On 10/04/12 21:39, Christopher David Howie wrote:
On 04/10/2012 03:23 PM, محمد الجداوي wrote:
Hi all. Every day i update my pywikipedia folder on toolserver by typing: svn checkout http://svn.wikimedia.org/svnroot/pywikipedia/trunk/pywikipedia How can i make a cron for updating every day at 10:03 p.m? Thanks in advance.
I'm not sure why you would be issuing "svn checkout" daily -- is there a reason you cannot "svn update"?
In svn a checkout of its remote location to an existing checkout is equivalente to svn up it. In most other vcs he wouldn't have been able to do that.
IMPORTANT INFORMATION/DISCLAIMER
I like it, although a bit large IMHO. I guess it can be freely adapted and reused?
Regards
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
On 10/04/12 22:45, محمد الجداوي wrote:
So, Is there a difference between "svn update" and "svn checkout"?
Yes. svn checkout <url> <folder> makes a "copy" of the current version of the repository at <url> into <folder> (if you omit <folder>, it uses the end of <url>)
svn up <item> Where <item> is a folder of file in a file or repository, updates it to its latest version. Usually, you go to the root of your copy of the repository copy and run svn up, which updates to its later version the current folder, and thus your whole copy.
Ok Platonides, How can i made a cron for "svn checkout"? Thanks for replying.
On Tue, Apr 10, 2012 at 11:26 PM, Platonides platonides@gmail.com wrote:
On 10/04/12 22:45, محمد الجداوي wrote:
So, Is there a difference between "svn update" and "svn checkout"?
Yes. svn checkout <url> <folder> makes a "copy" of the current version of the repository at <url> into <folder> (if you omit <folder>, it uses the end of <url>)
svn up <item> Where <item> is a folder of file in a file or repository, updates it to its latest version. Usually, you go to the root of your copy of the repository copy and run svn up, which updates to its later version the current folder, and thus your whole copy.
Toolserver-l mailing list (Toolserver-l@lists.wikimedia.org) https://lists.wikimedia.org/mailman/listinfo/toolserver-l Posting guidelines for this list: https://wiki.toolserver.org/view/Mailing_list_etiquette
On 04/10/2012 04:39 PM, Platonides wrote:
IMPORTANT INFORMATION/DISCLAIMER
I like it, although a bit large IMHO. I guess it can be freely adapted and reused?
Yes, I think so. I adapted some examples from http://goldmark.org/jeff/stupid-disclaimers/fun.html into my own version, but feel free to re-use.
toolserver-l@lists.wikimedia.org