{"action":"created","comment":{"url":"https://api.github.com/repos/mono/f-spot/pulls/comments/49201959","id":49201959,"diff_hunk":"@@ -0,0 +1,171 @@\n+//\n+//  BrowsablePointerTests.cs\n+//\n+// Author:\n+//   Daniel Köb <daniel.koeb@peony.at>\n+//\n+// Permission is hereby granted, free of charge, to any person obtaining\n+// a copy of this software and associated documentation files (the\n+// \"Software\"), to deal in the Software without restriction, including\n+// without limitation the rights to use, copy, modify, merge, publish,\n+// distribute, sublicense, and/or sell copies of the Software, and to\n+// permit persons to whom the Software is furnished to do so, subject to\n+// the following conditions:\n+//\n+// The above copyright notice and this permission notice shall be\n+// included in all copies or substantial portions of the Software.\n+//\n+// THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND,\n+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n+//\n+\n+using NUnit.Framework;\n+using System.Linq;\n+using Hyena;\n+using System.Collections.Generic;\n+\n+namespace FSpot.Core.UnitTest\n+{\n+    [TestFixture]\n+    public class BrowsablePointerTests\n+    {\n+        private IPhoto photo1 = new FilePhoto(new SafeUri(\"/1\"));\n+        private IPhoto photo2 = new FilePhoto(new SafeUri(\"/2\"));\n+        private IPhoto photo3 = new FilePhoto(new SafeUri(\"/3\"));","path":"src/Core/FSpot.Core.UnitTest/BrowsablePointerTests.cs","position":39,"original_position":39,"commit_id":"78506d53df349cf6cd70aa71e19174b1b67f0f1a","original_commit_id":"78506d53df349cf6cd70aa71e19174b1b67f0f1a","user":{"login":"dkoeb","id":10380816,"avatar_url":"https://avatars.githubusercontent.com/u/10380816?v=3","gravatar_id":"","url":"https://api.github.com/users/dkoeb","html_url":"https://github.com/dkoeb","followers_url":"https://api.github.com/users/dkoeb/followers","following_url":"https://api.github.com/users/dkoeb/following{/other_user}","gists_url":"https://api.github.com/users/dkoeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dkoeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkoeb/subscriptions","organizations_url":"https://api.github.com/users/dkoeb/orgs","repos_url":"https://api.github.com/users/dkoeb/repos","events_url":"https://api.github.com/users/dkoeb/events{/privacy}","received_events_url":"https://api.github.com/users/dkoeb/received_events","type":"User","site_admin":false},"body":"I'm used to ReSharper which adds those as well :-)\r\nWill remove them, but we definitely need a coding style guide...","created_at":"2016-01-08T15:50:41Z","updated_at":"2016-01-08T15:50:41Z","html_url":"https://github.com/mono/f-spot/pull/49#discussion_r49201959","pull_request_url":"https://api.github.com/repos/mono/f-spot/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/mono/f-spot/pulls/comments/49201959"},"html":{"href":"https://github.com/mono/f-spot/pull/49#discussion_r49201959"},"pull_request":{"href":"https://api.github.com/repos/mono/f-spot/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/mono/f-spot/pulls/49","id":55197865,"html_url":"https://github.com/mono/f-spot/pull/49","diff_url":"https://github.com/mono/f-spot/pull/49.diff","patch_url":"https://github.com/mono/f-spot/pull/49.patch","issue_url":"https://api.github.com/repos/mono/f-spot/issues/49","number":49,"state":"open","locked":false,"title":"Select second to last item on deleting last item.","user":{"login":"dkoeb","id":10380816,"avatar_url":"https://avatars.githubusercontent.com/u/10380816?v=3","gravatar_id":"","url":"https://api.github.com/users/dkoeb","html_url":"https://github.com/dkoeb","followers_url":"https://api.github.com/users/dkoeb/followers","following_url":"https://api.github.com/users/dkoeb/following{/other_user}","gists_url":"https://api.github.com/users/dkoeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dkoeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkoeb/subscriptions","organizations_url":"https://api.github.com/users/dkoeb/orgs","repos_url":"https://api.github.com/users/dkoeb/repos","events_url":"https://api.github.com/users/dkoeb/events{/privacy}","received_events_url":"https://api.github.com/users/dkoeb/received_events","type":"User","site_admin":false},"body":"When in Editing mode and the last photo is selected and deleted jump\r\nto the second to last photo instead of to the first photo in the list.","created_at":"2016-01-06T10:27:07Z","updated_at":"2016-01-08T15:50:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f03659a2d477298332207ab2b9a3a1c1df623df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mono/f-spot/pulls/49/commits","review_comments_url":"https://api.github.com/repos/mono/f-spot/pulls/49/comments","review_comment_url":"https://api.github.com/repos/mono/f-spot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mono/f-spot/issues/49/comments","statuses_url":"https://api.github.com/repos/mono/f-spot/statuses/78506d53df349cf6cd70aa71e19174b1b67f0f1a","head":{"label":"dkoeb:jump-to-last-on-delete","ref":"jump-to-last-on-delete","sha":"78506d53df349cf6cd70aa71e19174b1b67f0f1a","user":{"login":"dkoeb","id":10380816,"avatar_url":"https://avatars.githubusercontent.com/u/10380816?v=3","gravatar_id":"","url":"https://api.github.com/users/dkoeb","html_url":"https://github.com/dkoeb","followers_url":"https://api.github.com/users/dkoeb/followers","following_url":"https://api.github.com/users/dkoeb/following{/other_user}","gists_url":"https://api.github.com/users/dkoeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dkoeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkoeb/subscriptions","organizations_url":"https://api.github.com/users/dkoeb/orgs","repos_url":"https://api.github.com/users/dkoeb/repos","events_url":"https://api.github.com/users/dkoeb/events{/privacy}","received_events_url":"https://api.github.com/users/dkoeb/received_events","type":"User","site_admin":false},"repo":{"id":28743906,"name":"f-spot","full_name":"dkoeb/f-spot","owner":{"login":"dkoeb","id":10380816,"avatar_url":"https://avatars.githubusercontent.com/u/10380816?v=3","gravatar_id":"","url":"https://api.github.com/users/dkoeb","html_url":"https://github.com/dkoeb","followers_url":"https://api.github.com/users/dkoeb/followers","following_url":"https://api.github.com/users/dkoeb/following{/other_user}","gists_url":"https://api.github.com/users/dkoeb/gists{/gist_id}","starred_url":"https://api.github.com/users/dkoeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkoeb/subscriptions","organizations_url":"https://api.github.com/users/dkoeb/orgs","repos_url":"https://api.github.com/users/dkoeb/repos","events_url":"https://api.github.com/users/dkoeb/events{/privacy}","received_events_url":"https://api.github.com/users/dkoeb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkoeb/f-spot","description":"This repo is for creating pull requests only. Get f-spot's code from https://github.com/mono/f-spot","fork":true,"url":"https://api.github.com/repos/dkoeb/f-spot","forks_url":"https://api.github.com/repos/dkoeb/f-spot/forks","keys_url":"https://api.github.com/repos/dkoeb/f-spot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkoeb/f-spot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkoeb/f-spot/teams","hooks_url":"https://api.github.com/repos/dkoeb/f-spot/hooks","issue_events_url":"https://api.github.com/repos/dkoeb/f-spot/issues/events{/number}","events_url":"https://api.github.com/repos/dkoeb/f-spot/events","assignees_url":"https://api.github.com/repos/dkoeb/f-spot/assignees{/user}","branches_url":"https://api.github.com/repos/dkoeb/f-spot/branches{/branch}","tags_url":"https://api.github.com/repos/dkoeb/f-spot/tags","blobs_url":"https://api.github.com/repos/dkoeb/f-spot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkoeb/f-spot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkoeb/f-spot/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkoeb/f-spot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkoeb/f-spot/statuses/{sha}","languages_url":"https://api.github.com/repos/dkoeb/f-spot/languages","stargazers_url":"https://api.github.com/repos/dkoeb/f-spot/stargazers","contributors_url":"https://api.github.com/repos/dkoeb/f-spot/contributors","subscribers_url":"https://api.github.com/repos/dkoeb/f-spot/subscribers","subscription_url":"https://api.github.com/repos/dkoeb/f-spot/subscription","commits_url":"https://api.github.com/repos/dkoeb/f-spot/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkoeb/f-spot/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkoeb/f-spot/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkoeb/f-spot/issues/comments{/number}","contents_url":"https://api.github.com/repos/dkoeb/f-spot/contents/{+path}","compare_url":"https://api.github.com/repos/dkoeb/f-spot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkoeb/f-spot/merges","archive_url":"https://api.github.com/repos/dkoeb/f-spot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkoeb/f-spot/downloads","issues_url":"https://api.github.com/repos/dkoeb/f-spot/issues{/number}","pulls_url":"https://api.github.com/repos/dkoeb/f-spot/pulls{/number}","milestones_url":"https://api.github.com/repos/dkoeb/f-spot/milestones{/number}","notifications_url":"https://api.github.com/repos/dkoeb/f-spot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkoeb/f-spot/labels{/name}","releases_url":"https://api.github.com/repos/dkoeb/f-spot/releases{/id}","created_at":"2015-01-03T13:03:12Z","updated_at":"2016-01-07T18:40:38Z","pushed_at":"2016-01-08T15:37:10Z","git_url":"git://github.com/dkoeb/f-spot.git","ssh_url":"git@github.com:dkoeb/f-spot.git","clone_url":"https://github.com/dkoeb/f-spot.git","svn_url":"https://github.com/dkoeb/f-spot","homepage":"","size":19707,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mono:master","ref":"master","sha":"1415c75e61a901facff7e3c5d1dcbd559aa2a396","user":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"repo":{"id":6303800,"name":"f-spot","full_name":"mono/f-spot","owner":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mono/f-spot","description":"Desktop Photo Management software built on top of the Gnome platform, F-Spot","fork":false,"url":"https://api.github.com/repos/mono/f-spot","forks_url":"https://api.github.com/repos/mono/f-spot/forks","keys_url":"https://api.github.com/repos/mono/f-spot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mono/f-spot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mono/f-spot/teams","hooks_url":"https://api.github.com/repos/mono/f-spot/hooks","issue_events_url":"https://api.github.com/repos/mono/f-spot/issues/events{/number}","events_url":"https://api.github.com/repos/mono/f-spot/events","assignees_url":"https://api.github.com/repos/mono/f-spot/assignees{/user}","branches_url":"https://api.github.com/repos/mono/f-spot/branches{/branch}","tags_url":"https://api.github.com/repos/mono/f-spot/tags","blobs_url":"https://api.github.com/repos/mono/f-spot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mono/f-spot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mono/f-spot/git/refs{/sha}","trees_url":"https://api.github.com/repos/mono/f-spot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mono/f-spot/statuses/{sha}","languages_url":"https://api.github.com/repos/mono/f-spot/languages","stargazers_url":"https://api.github.com/repos/mono/f-spot/stargazers","contributors_url":"https://api.github.com/repos/mono/f-spot/contributors","subscribers_url":"https://api.github.com/repos/mono/f-spot/subscribers","subscription_url":"https://api.github.com/repos/mono/f-spot/subscription","commits_url":"https://api.github.com/repos/mono/f-spot/commits{/sha}","git_commits_url":"https://api.github.com/repos/mono/f-spot/git/commits{/sha}","comments_url":"https://api.github.com/repos/mono/f-spot/comments{/number}","issue_comment_url":"https://api.github.com/repos/mono/f-spot/issues/comments{/number}","contents_url":"https://api.github.com/repos/mono/f-spot/contents/{+path}","compare_url":"https://api.github.com/repos/mono/f-spot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mono/f-spot/merges","archive_url":"https://api.github.com/repos/mono/f-spot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mono/f-spot/downloads","issues_url":"https://api.github.com/repos/mono/f-spot/issues{/number}","pulls_url":"https://api.github.com/repos/mono/f-spot/pulls{/number}","milestones_url":"https://api.github.com/repos/mono/f-spot/milestones{/number}","notifications_url":"https://api.github.com/repos/mono/f-spot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mono/f-spot/labels{/name}","releases_url":"https://api.github.com/repos/mono/f-spot/releases{/id}","created_at":"2012-10-20T00:46:14Z","updated_at":"2016-01-07T09:17:48Z","pushed_at":"2016-01-08T04:44:16Z","git_url":"git://github.com/mono/f-spot.git","ssh_url":"git@github.com:mono/f-spot.git","clone_url":"https://github.com/mono/f-spot.git","svn_url":"https://github.com/mono/f-spot","homepage":null,"size":19858,"stargazers_count":15,"watchers_count":15,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":12,"forks":15,"open_issues":12,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mono/f-spot/pulls/49"},"html":{"href":"https://github.com/mono/f-spot/pull/49"},"issue":{"href":"https://api.github.com/repos/mono/f-spot/issues/49"},"comments":{"href":"https://api.github.com/repos/mono/f-spot/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/mono/f-spot/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/mono/f-spot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mono/f-spot/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/mono/f-spot/statuses/78506d53df349cf6cd70aa71e19174b1b67f0f1a"}}}}