• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SVNAnt checkout and update overriding local file changes

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I just installed svnant the other day and have a few questions on the checkout and update tasks of svn. I'm fairly new to svn and have always used cvs in the past.

I used checkout to bring a local copy of the repository to my disk. It took about 5 mins.

Using update it took almost 18 mins. Why so long? CVS seems to be much faster (i think).

My main question has to deal with updating local files that have been modified. If i make changes to a local file and then use ant to update my local repo the modified file is never overwritten from head. How can I force svn to update local files that have been modified?

Your help would be greatly appreciated.

Here is a snippet from my build file:

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Phil Krasko:
Hi,

I just installed svnant the other day and have a few questions on the checkout and update tasks of svn. I'm fairly new to svn and have always used cvs in the past.

I used checkout to bring a local copy of the repository to my disk. It took about 5 mins.

Using update it took almost 18 mins. Why so long? CVS seems to be much faster (i think).

My main question has to deal with updating local files that have been modified. If i make changes to a local file and then use ant to update my local repo the modified file is never overwritten from head. How can I force svn to update local files that have been modified?

Your help would be greatly appreciated.

Here is a snippet from my build file:


Hello Phil,

This could have been done without using svnant, and simply using ant tasks by :-

where svn.path is the local path which you want to update, if this is the root directory of your application, then all sub-folders will be updated to the latest revision of the repository.
Put svn.path, svn.user and svn.password in a property file(say you give it name 'svn-update.properties') and include that property file in your build file by using the following command:-

[ December 21, 2008: Message edited by: Manish Doomra ]
reply
    Bookmark Topic Watch Topic
  • New Topic