PDA

View Full Version : SVN anyone?


Flash Gordon
04-14-2008, 07:51 PM
Hey Gang,

I have TortoiseSVN installed on my computer that has pulled files down from a repository. However, someone else committed some files at a later date. So what I'd like to know is is it possible to make TortoiseSVN an Observer of the client so that it notifies me whenever there are changes in the repository?

h00d
04-15-2008, 05:59 AM
I don't think so. You should be updating to the head often anyway.

Why do you want it to be a observer?

Flash Gordon
04-15-2008, 06:31 AM
Yea....that what it kind of seems. But is makes sense to just be notified when a changes happens rather than having to poll the server.

So when are you swing by this way again? Did you take the new job?

jsebrech
04-15-2008, 09:39 AM
My suggestion would be to set up a script that runs periodically and uses the command-line svn client to check for changes. Then you could have it show an alert on the screen, write to a file where you'll see it, or some other action.

To schedule scripts, see this link:
http://support.microsoft.com/kb/308569

Also, you could use a client that shows you live check-ins on the repository. Smartsvn has a transaction view that shows you commits within minutes after they occur.

panel
04-16-2008, 11:30 AM
Usually I am using update command before commit :cool: (unless I know am only one working with specified project)

Flash Gordon
04-16-2008, 05:41 PM
Also, you could use a client that shows you live check-ins on the repository. Smartsvn has a transaction view that shows you commits within minutes after they occur. Any idea how this works? I don't want my client consistently polling the server every couple of minutes.

Ok, so how are you guys setting up your file structure. We have a team of people here working on several sites at a time (Designs, animator, and programmers) and using code from as3corelib, Tweener, etc...

so maybe:

companyname
projectname
branches
tags
trunk
assets
deploy
source

projectname2
branches
tags
trunk
assets
deploy
source


so where should i be putting the frameworks (global/resuable) classes like Tweener and stuff. A different repository?
Make any sense?

panel
04-16-2008, 06:32 PM
I have the same problem - I am using my own 'mini framework' in few projects. Unfortunately I am always doing two separate commits - one for project, one for framework. I also wonder is there any bather way :confused:

About folder structure
ProjectName
dev (current version)
release
1.01
1.02
...


Is this automatic update has any sense? Imagine situaction that you have a conflict, because someone edited the same file... whats now? manually resolving every 'auto update' ??

Flash Gordon
04-16-2008, 06:53 PM
Is this automatic update has any sense? Imagine situaction that you have a conflict, because someone edited the same file... whats now? manually resolving every 'auto update' ?? I think you are referring to my initial question here. I don't want an automatic update, I just want other programmers to be notified when I make a change to the framework. From there, they can do as they please. And by notify, I mean TortoiseSVN put a little red exclamation mark on the folder for me.

As for your question....I dunno....

acolyte
04-16-2008, 10:15 PM
Hi Flash Gordon ,

i do this by just placing a com Folder in my repository root directory

in the com folder are all the classes refering to the framework and the Project

like com > caurina > tweener.as

so if i change something in com then com should be marked as red anyways

should be easy are you using the Eclipse / Subclipse

Flex or Fdt ?

For Panels Question :

thats where this handy "Lock" function is for if you lock a file then it Markes the File up for the others as not editable because the file will be edited by someone else
and it only can be unlocked by the Guy who originally locked it

panel
04-17-2008, 10:34 AM
Hi Flash Gordon ,

i do this by just placing a com Folder in my repository root directory

in the com folder are all the classes refering to the framework and the Project

like com > caurina > tweener.as

so if i change something in com then com should be marked as red anyways

should be easy are you using the Eclipse / Subclipse

Flex or Fdt ?

@FlashGordon was asking about notification if some one else make changes to files


For Panels Question :

thats where this handy "Lock" function is for if you lock a file then it Markes the File up for the others as not editable because the file will be edited by someone else
and it only can be unlocked by the Guy who originally locked it
I am aware about lock feature but I was pointing something else ;p

jsebrech
04-17-2008, 02:18 PM
@Flash Gordon: the transaction view of smartsvn polls the server, but it's pretty light-weight (it doesn't download the entire list of transactions, only the changes since the last poll). You can configure the polling frequency and explicitly trigger a poll as well.

I can't really provide solid advice because the team I'm in has comparable issues. We have a 2 million line repository with lots of shared libraries, and 4 groups of developers (windows and web, each divided into two teams in different countries). We haven't really figured out the best solution to keep track of changes either.

acolyte
04-18-2008, 09:44 AM
In Subclipse its normal that there is a merge notification if there was a previousely locked file edited