Questions tagged [shelve]

Shelve can refer to either a Python object persistence or a pending change in a Visual Studio Workspace

A shelf in Python is a persistent, dictionary-like object. Documentation: shelve

Shelve can also refer to a pending change in the workspace within Visual Studio 2005

351 questions
328
votes
8 answers

What is Shelving in TFS?

Is shelving in TFS merely a soft checkin so other team members can see the source code? i.e. the shelved code will not be compiled right?
yaya6
105
votes
5 answers

Can I unshelve to a different branch in tfs 2008?

Let's assume that some developer in my team shelved his changes that he did in branch A. And I am working on branch B. Can I unshelve his changes into branch B? (By GUI or command prompt)
spinodal
  • 4,007
  • 3
  • 29
  • 38
97
votes
3 answers

What is the difference between pickle and shelve?

I am learning about object serialization for the first time. I tried reading and 'googling' for differences in the modules pickle and shelve but I am not sure I understand it. When to use which one? Pickle can turn every python object into stream…
zubinmehta
  • 4,368
  • 7
  • 33
  • 51
60
votes
9 answers

How to view Shelved P4 Changes?

One of our team member (located in different region) has shelved changes in P4 with changelist 1234. Now, if I want to see what files are modified snf what are the changes, how can I do this? What is the P4 command that I should use to see the…
Mike
  • 7,606
  • 25
  • 65
  • 82
60
votes
3 answers

Unshelving in TFS: What does it mean?

Here's the part I get: When you shelve in TFS, it makes a server copy of the changes so they are not lost, but does not check them into the source code trunk/branch you are working on. Question: Under what circumstances would you use the "unshelve"…
brentlightsey
  • 2,026
  • 1
  • 19
  • 23
47
votes
3 answers

Mercurial shelve extension - how can you view the diff of a shelf?

I see no documentation on how to do this in the docs.
Charles Finkel
  • 1,540
  • 2
  • 10
  • 12
34
votes
5 answers

What is the difference between shelve and check in in TFS?

What is the concept of each? When is it ok to shelve your changes instead of checking in?
juan
  • 80,295
  • 52
  • 162
  • 195
32
votes
3 answers

How to download TFS shelveset

I need to download a shelveset from TFS to a local folder. Is there any tools or add-in for Visual studio 2010 to download shelveset
Kamal Kr
  • 687
  • 1
  • 10
  • 22
31
votes
6 answers

Get back lost shelf changes

I have shelved my 26 java files changes via Intellij Idea 2016.2.1 and I checkout to different branch. When I came to old branch to check my shelved changes. I gone a mad now, I lost all the files. I was worked nearly two months Can somebody help to…
Sanjay Dutt
  • 1,173
  • 4
  • 15
  • 19
27
votes
8 answers

Print all variables in a class? - Python

I'm making a program that can access data stored inside a class. So for example I have this class: #!/usr/bin/env python import shelve cur_dir = '.' class Person: def __init__(self, name, score, age=None, yrclass=10): self.name = name …
Fergus Barker
  • 1,282
  • 6
  • 16
  • 26
26
votes
2 answers

Pickle versus shelve storing large dictionaries in Python

If I am storing a large directory as a pickle file, does loading it via cPickle mean that it will all be consumed into memory at once? If so, is there a cross platform way to get something like pickle, but access each entry one key at a item (i.e.…
user248237
20
votes
1 answer

Why does the shelve module in python sometimes create files with different extensions?

I'm running a Python program which uses the shelve module on top of pickle. After running this program sometimes I get one output file as a.data but at other times I get three output files as a.data.bak, a.data.dir and a.data.dat. Why is that?
Ali_IT
  • 7,551
  • 8
  • 28
  • 44
16
votes
2 answers

hg unshelve seems to have no effect?

Our team is just getting started with Mercurial. One of the first things we've started to play with is hg shelve. Locally, I have no problem shelving changes. It all works perfectly from what I can tell. However, when I try to unshelve, I get the…
shanebonham
  • 2,219
  • 2
  • 18
  • 19
14
votes
4 answers

Shelve is too slow for large dictionaries, what can I do to improve performance?

I am storing a table using python and I need persistence. Essentially I am storing the table as a dictionary string to numbers. And the whole is stored with shelve self.DB=shelve.open("%s%sMoleculeLibrary.shelve"%(directory,os.sep),writeback=True)…
Pietro Speroni
  • 3,131
  • 11
  • 44
  • 55
14
votes
2 answers

Selecting between shelve and sqlite for really large dictionary (Python)

I have a large Python dictionary of vectors (150k vectors, 10k dimensions each) of float numbers that can't be loaded into memory, so I have to use one of the two methods for storing this on disk and retrieving specific vectors when appropriate. The…
dkar
  • 2,113
  • 19
  • 29
1
2 3
23 24