{"action":"opened","issue":{"url":"https://api.github.com/repos/NavicoOS/ac2git/issues/85","repository_url":"https://api.github.com/repos/NavicoOS/ac2git","labels_url":"https://api.github.com/repos/NavicoOS/ac2git/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/NavicoOS/ac2git/issues/85/comments","events_url":"https://api.github.com/repos/NavicoOS/ac2git/issues/85/events","html_url":"https://github.com/NavicoOS/ac2git/issues/85","id":176768582,"number":85,"title":"multiple mkstream transaction match","user":{"login":"marcnorthover","id":2672019,"avatar_url":"https://avatars.githubusercontent.com/u/2672019?v=3","gravatar_id":"","url":"https://api.github.com/users/marcnorthover","html_url":"https://github.com/marcnorthover","followers_url":"https://api.github.com/users/marcnorthover/followers","following_url":"https://api.github.com/users/marcnorthover/following{/other_user}","gists_url":"https://api.github.com/users/marcnorthover/gists{/gist_id}","starred_url":"https://api.github.com/users/marcnorthover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcnorthover/subscriptions","organizations_url":"https://api.github.com/users/marcnorthover/orgs","repos_url":"https://api.github.com/users/marcnorthover/repos","events_url":"https://api.github.com/users/marcnorthover/events{/privacy}","received_events_url":"https://api.github.com/users/marcnorthover/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-13T22:37:41Z","updated_at":"2016-09-13T22:37:41Z","closed_at":null,"body":"I received this error:\r\n\r\n```\r\n  File \"ac2git.py\", line 1255, in RetrieveStreamInfo\r\n    deepHist = accurev.ext.deep_hist(depot=depot, stream=stream.name, timeSpec=\"{0}-{1}\".format(tr.id, endTr.id), ignoreTimelocks=\r\nignoreTimelocks, useCache=self.config.accurev.UseCommandCache())\r\n  File \"C:\\git_work\\ac2git-0.6\\accurev.py\", line 2564, in deep_hist\r\n    mkstreamTr = ext.get_mkstream_transaction(stream=streamInfo.streamNumber, depot=depot, useCache=useCache)\r\n  File \"C:\\git_work\\ac2git-0.6\\accurev.py\", line 2377, in get_mkstream_transaction\r\n    raise Exception(\"Invariant error! Ambiguous: multiple mkstream transactions match! Could not determine if stream {s} (name: {n\r\n}, id: {sn}) was created by transaction {t1} or {t2}!\".format(s=stream, n=streamInfo.name, sn=streamInfo.streamNumber, t1=mkstream\r\nTr.id, t2=t.id))\r\nException: Invariant error! Ambiguous: multiple mkstream transactions match! Could not determine if stream 587 (name: xxxxxxxxxxxx-2014-01-07, id: 587) was created by transaction 10063 or 10062!\r\n```\r\nSure enough in accurev I have 2 transactions from 2 separate projects with the same timestamp:\r\n```\r\nC:\\accurev_work\\AM-accessmanager-local\\accessmanager-local>accurev hist -fx -t 10062-10063\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<AcResponse\r\n    Command=\"hist\"\r\n    TaskId=\"3568090\">\r\n  <transaction\r\n      id=\"10062\"\r\n      type=\"mkstream\"\r\n      time=\"1418660369\"\r\n      user=\"aaaaaaaaa\">\r\n    <stream\r\n        name=\"yyyyyyyyyyy-2007-10-23\"\r\n        streamNumber=\"586\"\r\n        depotName=\"zzzzzzzzz\"\r\n        type=\"snapshot\"\r\n        basis=\"yyyyyyyyyy\"\r\n        basisStreamNumber=\"23\"/>\r\n  </transaction>\r\n  <transaction\r\n      id=\"10063\"\r\n      type=\"mkstream\"\r\n      time=\"1418660369\"\r\n      user=\"bbbbbbbbb\">\r\n    <stream\r\n        name=\"ccccccccccc-2014-01-07\"\r\n        streamNumber=\"587\"\r\n        depotName=\"zzzzzzzzzz\"\r\n        type=\"snapshot\"\r\n        basis=\"ccccccccccc\"\r\n        basisStreamNumber=\"21\"/>\r\n  </transaction>\r\n</AcResponse>\r\n```\r\n\r\nAny suggestions on a fix for this one?  If there are more than 1, seems like we can for loop thru and find the one that matches the given stream name?\r\n"}}
{"actor":{"display_login":"marcnorthover"}}