Re: Fast way to get changed files since label?

Jeremy Sheeley <[email protected]> Wed, 18 Aug 2004 10:01:24 -0500
Newsgroups gmane.comp.version-control.sourcegear-vault.user
Message-ID <[email protected]>
Jason,

You would have to use the client API to try to do something like this.  
As a starting point, check out my blog on using the client API at 
http://weblogs.asp.net/jeremy_sheeley

For what you want to accomplish, you will need to compare the results of 
a call to myClient.Connection.GetLabelStructureByName with the current 
tree cache, which is accessed through the 
myClient.TreeCache.Repository.Root object.  Give me an email off-list 
and I'll help you with this (as long as you don't mind me creating a 
blog article off our discussions).

-Jeremy Sheeley


Jason Zisk wrote:

>Right now I'm in the unenviable position of having to make many small
>patches for a beta of a product we're working on.  What we do is we label
>each release, then when I need to make a patch I do a diff on the files in
>the repository vs. the last label.  This gives a nice listing of all the
>files that have changed, making my patch-making much easier.
>
>The problem is the speed.  It takes several hours to do this, I guess due to
>the number and size of our files that it needs to download (over the
>internet!).  I'm wondering if there is a faster way to use labels to see
>what has changed/what is new?  I don't care about the actual difference _in_
>the files, I just want to know which files.  It looks like vault is going
>overboard and actually downloading both version of the file and doing a full
>diff, when it could simply be doing a checksum check on each file to tell me
>if they are different.
>
>Hmm well you know I guess I could do the diff vs. the files on my HD, maybe
>eliminating half the download?  That could double the speed I guess but it
>would still take quite a while.  This set of files is around the 2 gigabyte
>range.
>
>Really it takes so long and I have to make so many patches I may have to
>download a seperate program to do the actual directory diff, and just keep a
>version of the last build around on my HD so I can compare it to the latest
>version.  But I'm hoping I can just use vault to do this task.  :)
>
>- Jason Zisk
>- nFusion Interactive LLC
>
>
>_______________________________________________
>vault-list mailing list
>[email protected]
>http://lists.sourcegear.com/cgi-bin/mailman/listinfo/vault-list
>  
>