Hi everyone
-
10 Nisan 2012 Salı 06:42
Could you please anyone explain me what is Shelve Pending Changes and Unshelve Pending changes briefly. Please dont ask me to refer the below sites.
http://msdn.microsoft.com/en-us/library/ms181404%28VS.80%29.aspx#1
http://msdn.microsoft.com/en-us/library/ms181404.aspx
because i gone through the sites many times. but not able to understand wat it is. Every one telling that its just storing the changes which have been made in locally . But i am not understand wat it means. And also in what situation shelve and unshelve pending change would use. if the purpose of the shelve is storing the changes which made in my worksspaces means , suppose my system would crashed , if it is possible to take my changes using some other workspcaes?.
please anyone help me .
Thanks in-advance
Manikandan Murugeshan
Manikandan Murugeshan
Tüm Yanıtlar
-
10 Nisan 2012 Salı 18:04
I will try to summarize a shelveset => Shelving lets you set aside a batch of pending changes temporarily and optionally remove the pending changes from workspace. The product of the shelve operation is ashelveset. The changes in a shelveset can be restored later into your workspace or into another user's workspace.
Now lets take up a scenario where a developer in your team has been working on 10 artificats from your version control, however, because he is yet to logically complete his changes, he keeps working on them in his local workspace, he completes his work one fine evening and tells himself that he will check in his changes next morning. Next morning he comes in to work to find that his hard disk has been corrupted, what happens to his changes? they are lost!
-The biggest advantage as i see with shelvesets is the ability to store your pending changes on the server. Which means they are backed up along with your server and in case your workspace corrupts, you can always download the shelved changes again.
- The shelved changes can be shared with team members very easily, code reviews in my team are done with shelve sets, junior programmers shelve their changes, senior programmers download their shelved changes on to their local workspace, review the code and check it in on their behalf.
- You could build off shelvesets as well, so if you wanted to test your changes before you checked them in, build off the shelve set.
http://msdn.microsoft.com/en-us/library/ms181403.aspx
- There are extensions available, that perform auto shelving for you, have a look at this one =>http://visualstudiogallery.msdn.microsoft.com/080540cb-e35f-4651-b71c-86c73e4a633d
By now, you probably know how much i love shelvesets :)
I hope i have answered your question, if you have any additonal questions, please feel free to add to the thread.
HTH
Cheers, TarunPlease remember to mark the replies as answers if they help.
Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader- Yanıt Olarak İşaretleyen Manikandan Murugeshan 11 Nisan 2012 Çarşamba 04:45
-
10 Nisan 2012 Salı 21:30
Another scenario where shelvesets can come in handy is when you work with some files for some bigger change, when you are asked to handle an urgent bug. To make the necessary analysis, you want your changes out of the way (maybe because your code is half-baked and goes neither forward nor backward). So you can shelve your changes, and then work with the original sources, and then get the shelveset back.
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se -
11 Nisan 2012 Çarşamba 05:17
Hi Tarun Arora ,
Thanks... Now its clear.. after studied the thread i pratically tried in my system .. , I found one issue(i dont know excatly that one is issue or not) .. i will explain you steps what i performed and what i get...
1) I checked -out one of my file in solution Explorer(TFS) in my workspace
2) I made some of the changes and saved that file and made that file shelve(by right click that file , choosen the option shelve pending changes , it ask shelve set name , i gave and saved). But not checked -in that file.
3) I closed my workspace and i opened my solution explorer in another user system with my user name only, but workspace is different.
4) In that i tried to unsheleve the file, which i shelved(by clicking file-> source control -> Unsheleve pending changes) and choosen that shelved name(ther it showing the correct owner name) and clicked unshelve.
That time one message showing as "
The item $/EXACT/EXACT V2.1.1/03 - Architecture & Design/03 - Functional Specification/GUI/Administration/GUI - Spec for User Editor Settings.xls is locked for check-out by KINSHIP\Manikandan in workspace MURUGESHANMANIK."
Wat it means...? Is there any mistake i made or any steps i missed out during the performing the shelve or unsheleved process.
Manikandan Murugeshan
-
11 Nisan 2012 Çarşamba 05:23
Hi Erland Sommarskog ,
I post u the issue which i faced during my pratically session of sheleve and unsheleve ,(which i posted the same for Tarun Arorao) . I found one issue(i dont know excatly that one is issue or not) .. i will explain you steps what i performed and what i get...
1) I checked -out one of my file in solution Explorer(TFS) in my workspace
2) I made some of the changes and saved that file and made that file shelve(by right click that file , choosen the option shelve pending changes , it ask shelve set name , i gave and saved). But not checked -in that file.
3) I closed my workspace and i opened my solution explorer in another user system with my user name only, but workspace is different.
4) In that i tried to unsheleve the file, which i shelved(by clicking file-> source control -> Unsheleve pending changes) and choosen that shelved name(ther it showing the correct owner name) and clicked unshelve.
That time one message showing as "
The item $/EXACT/EXACT V2.1.1/03 - Architecture & Design/03 - Functional Specification/GUI/Administration/GUI - Spec for User Editor Settings.xls is locked for check-out by KINSHIP\Manikandan in workspace MURUGESHANMANIK."
Wat it means...? Is there any mistake i made or any steps i missed out during the performing the shelve or unsheleved process.
Manikandan Murugeshan
-
13 Nisan 2012 Cuma 11:14
Hi,
Thanks for writing back Manikandan. The small problem you are facing is that files such as word, excel, etc cannot be checked out at 2 places in one because VS 2010 does not support a merge operation on them.
If you were to undo pending changes for this on pc1 and then try and unshelve you will not run into this issue.
HTH
Cheers, TarunPlease remember to mark the replies as answers if they help.
Blog: http://geekswithblogs.net/TarunArora
Subscribe in a reader- Yanıt Olarak İşaretleyen Manikandan Murugeshan 16 Nisan 2012 Pazartesi 09:41
-
16 Nisan 2012 Pazartesi 09:47
Hi Tarun,
Sorry for the delay Reply.... Thanks for ur answer... I need one more help on sheleve and unsheleve. I studied one article in web about the Auto sheleve. Like Ms-Word application it also auto save the unsave changes in particular duration . If i would use that option means, Is there any problem for server to maintain version(i,e load balancing)(if i gave 5 minutes duration for auto sheleve) ?
Thanks
Manikandan Murugeshan
Manikandan Murugeshan
