Comments (5)
I made a fix in my branch of git-tfs. A pull request was made.
from git-tfs.
Ok that fix was bad. It turns out there are two issues that cause this to be hit on processing Rename changes. One is where the rename doesn't actually have a delete associated with it (item.DeletionId == 0). As far as I can tell when item.DeletionId == 0, we should not try to clean up the original object (http://blogs.msdn.com/roberthorvick/archive/2006/02/09/528651.aspx).
There is another file that is the result of a rename change where DeleteId != 0 though the previous version of the file cannot be found. I've been looking at the history in various ways and can't figure out where the original is for that file. I couldn't resolve this case. :(
from git-tfs.
I've ran into this exact problem, and found item.VersionControlServer.GetItem(item.ItemId, item.ChangesetId - 1).ServerItem would throw an exception e.g.
item.VersionControlServer.GetItem(3891301,72192)
{Sep.Git.Tfs.VsCommon.WrapperForItem}
[Sep.Git.Tfs.VsCommon.WrapperForItem]: {Sep.Git.Tfs.VsCommon.WrapperForItem}
ChangesetId: 'item.VersionControlServer.GetItem(3891301,72192).ChangesetId' threw an exception of type 'System.NullReferenceException'
DeletionId: 'item.VersionControlServer.GetItem(3891301,72192).DeletionId' threw an exception of type 'System.NullReferenceException'
ItemId: 'item.VersionControlServer.GetItem(3891301,72192).ItemId' threw an exception of type 'System.NullReferenceException'
ItemType: 'item.VersionControlServer.GetItem(3891301,72192).ItemType' threw an exception of type 'System.NullReferenceException'
ServerItem: 'item.VersionControlServer.GetItem(3891301,72192).ServerItem' threw an exception of type 'System.NullReferenceException'
VersionControlServer: 'item.VersionControlServer.GetItem(3891301,72192).VersionControlServer' threw an exception of type 'System.NullReferenceException'
Changed to item.VersionControlServer.GetItem(item.ItemId, item.ChangesetId ).ServerItem got it going again, but I am not sure what implications this is going to have.
from git-tfs.
Is this happening when hitting a TFS 2010 server and the changeset where the failure occurs contains a rename? If so, I have proposed a fix to this bug in issue #9.
from git-tfs.
This appears to be resolved by the fix in #9.
from git-tfs.
Related Issues (20)
- GitTfs-0.32.0.zip file issues HOT 3
- Fails to build—restore not available HOT 1
- Cannot find module './tempdir' issue reported while copying files from staging environment to production HOT 1
- Policy: Internal error in Work Items. Error loading the Work Items policy HOT 2
- How do I retrieve file history after clone? All I see is branch comments. HOT 7
- Adding work items to the export file doesn't work
- git-tfs not showing history showing error,"Please report this case to the git-tfs developers!" HOT 1
- New Release after v0.32.0 HOT 4
- Sudden authentication issue HOT 2
- Export map can't be created, if a TFS changeset shall be assigned to multiple commits
- Wrong branch cloned when several branch names starts in the same
- "git tfs" isn't a command, but "git-tfs" is a command HOT 1
- Error while cloning branches by using command. - git tfs clone https://TFSURL/tfs/defaultcollection/ $/ProjectName/Ressursstyring/src/next . --branches=all HOT 2
- How is v0.33.0 supporting Vs2022 as mentioned in the release notes? HOT 3
- Exclude folders from migration. HOT 2
- "GitTfs.Core.GitTfsException: Nothing to checkin!" on "git tfs rcheckin" HOT 5
- Cannot verify the migrated repository 'Unable to cast object of type ....' HOT 3
- Feature Request : Submit git-tfs to winget HOT 2
- .gitattributes ignored HOT 6
- I couldn't run them at first, but then managed to run Checkin Policies on VS2022 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-tfs.