Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion : Doing compare when get lastest version #28

Open
GoogleCodeExporter opened this issue Nov 4, 2015 · 10 comments
Open

Suggestion : Doing compare when get lastest version #28

GoogleCodeExporter opened this issue Nov 4, 2015 · 10 comments

Comments

@GoogleCodeExporter
Copy link

Hi,

In my environment, there are a great number of objects in one target, when I 
execute "Get Lastest Version" command on a target, it will import all objects 
of this target even a plenty of objects are never updated, and it will cost a 
plenty of time to do this operation.

so I suggest whether we can do a compare when we import the objects, if the 
object is never updated, we will don't import this object. in other word, we 
just import the objects which have been updated.

we can implement this feature by adding a version number property on each 
object in split file, or some method else.

how do you think?

Thanks,
Harry

Original issue reported on code.google.com by liuhx1...@gmail.com on 28 May 2011 at 3:16

@GoogleCodeExporter
Copy link
Author

Just few words about how it's working:

PB calls method SccGet in scc interface 
SccGet(LPVOID pContext, HWND hWnd, LONG nFiles, LPCSTR* lpFileNames, LONG 
dwFlags,LPCMDOPTS pvOptions)

and requests which objects it want to import.
PB calls this function for each 25 objets.
In old versions of pbscc there was a problem: for each SccGet call, pbscc calls 
svn update.
But it was solved.

So, I don't see how idea with additional file could help.
To find a root of the problem, please activate pbscc logging through registry, 
click "Get Lastest Version" and attach log file here.
--
Dmitry

Original comment by daggett....@gmail.com on 28 May 2011 at 6:46

@GoogleCodeExporter
Copy link
Author

Hi Dmitry,

Thanks for your reply!

Do you mean that we cannot do a diff to avoid PB import the objects? just 
because PB calls the method SccGet, and you just return the objects which PB 
required, and we cannot control whether PB import the objects or not, is it 
right?

By the way, the attached is my log file when I click "Get Lastest Version", any 
thing please just let me know.

- Harry

Original comment by liuhx1...@gmail.com on 28 May 2011 at 3:07

Attachments:

@GoogleCodeExporter
Copy link
Author

one more thing, there is no change in my svn server, but when I clicked "Get 
Lastest Version" on a target, PB imported all of the objects in this target, 
see log file which I attached in previous comment for detail.

Original comment by liuhx1...@gmail.com on 28 May 2011 at 3:17

@GoogleCodeExporter
Copy link
Author

Try to disable option "Perform diff on status update"
in source control configuration of your workspace.
And then recreate the log file for "get latest version"

Thanks,
  Dmitry

Original comment by daggett....@gmail.com on 28 May 2011 at 5:44

@GoogleCodeExporter
Copy link
Author

The attached is newer log file as you required.

Original comment by liuhx1...@gmail.com on 29 May 2011 at 1:35

Attachments:

@GoogleCodeExporter
Copy link
Author

Normally PB should check which objects to import by revision number. 
If it's different in PBL's and in SVN then only those objects must be marked 
for import in PB.

Do you want to say that all objects are marked for import in your case?

Original comment by daggett....@gmail.com on 29 May 2011 at 6:01

@GoogleCodeExporter
Copy link
Author

Actually, the PB doesn't mark any object for import even some objects have 
different revision with PBL's, I must select the objects by clicked "Select 
All" button for marking objects to import.

For example, look at the attached screenshot, there is no object is marked for 
import by default even the second object has been updated by other member.(the 
second object should be marked for import by default, how do you think?)

- Harry

Original comment by liuhx1...@gmail.com on 29 May 2011 at 8:30

Attachments:

@GoogleCodeExporter
Copy link
Author

PB by default refreshes status of objects every 5 min.
Pb will mark only changed objects after it refresh status.
You can set the refresh rate in source control config to 1 min.
So in ~1min after object has been changed, you have to see this by new icons 
(round arrow) near by remotely changed objects.
And PB will mark those objects for import during "get latest version" operation.
--
Dmitry

Original comment by daggett....@gmail.com on 29 May 2011 at 9:22

@GoogleCodeExporter
Copy link
Author

Thank you, Dmitry! 

but it seems that it doesn't work for me, I changed the refresh rate to 1 min, 
I found the file in svn folder have changed to lastest version after 1 min, but 
the object in PB has no change( both the content & icons of the object ).

I also try to click the "Refresh Status" menu on the context menu on the 
object, but the result is same.

So, is it a PB's bug(my PB version is 8.0.3)? or PBSCC's bug( my PBSCC's 
version is 2.01.78 )?

I just suppose a case, maybe you overwrited some code related "Refresh Status", 
and it didn't return correct result to PB, so...

- Harry

Original comment by liuhx1...@gmail.com on 29 May 2011 at 10:49

@GoogleCodeExporter
Copy link
Author

Hi Dmitry,

Could you please give me any suggestion on my question?

Thanks
Harry

Original comment by liuhx1...@gmail.com on 1 Jun 2011 at 9:21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant