{"thread":{"id":"1621","subject":"[RFC] cg-log -r order:matters","startedAt":"2005-08-23T11:12:58Z","lastAt":"2005-09-21T13:46:38Z","messageCount":2,"participants":["Martin Langhoff","Petr Baudis"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"7646","messageId":"46a038f905082304126e8ecd65@mail.gmail.com","threadId":"1621","inReplyTo":null,"subject":"[RFC] cg-log -r order:matters","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2005-08-23T11:12:58Z","receivedAt":"2005-08-23T11:12:58Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"It's sometimes unclear which head is \"ahead\" of the other. If I get\nthe order wrong, cg-log shows no log output. Is this expected?\n\nI was expecting a warning, or a reverse-ordered log. Or both. ;)\n\n\nmartin\n"},{"id":"9037","messageId":"20050921134638.GA17981@pasky.or.cz","threadId":"1621","inReplyTo":"46a038f905082304126e8ecd65@mail.gmail.com","subject":"Re: [RFC] cg-log -r order:matters","fromName":"Petr Baudis","fromEmail":"pasky@suse.cz","sentAt":"2005-09-21T13:46:38Z","receivedAt":"2005-09-21T13:46:38Z","isPatch":false,"sender":{"key":"pasky@ucw.cz","avatar":"https://avatars.githubusercontent.com/u/18439?v=4"},"body":"Dear diary, on Tue, Aug 23, 2005 at 01:12:58PM CEST, I got a letter\nwhere Martin Langhoff <martin.langhoff@gmail.com> told me that...\n> It's sometimes unclear which head is \"ahead\" of the other. If I get\n> the order wrong, cg-log shows no log output. Is this expected?\n> \n> I was expecting a warning, or a reverse-ordered log. Or both. ;)\n\nThe thing is, how cg-log -r from:to is implemented is really \"show me\nall the ancestors of $to excepts ancestors of $from\". So if $to is\nan ancestor of $from, it will logically show nothing. But checking that\ncondition separately would take _very_ long time. And just producing a\nwarning when log output would be empty, that seems too noisy to me.\n\n-- \n\t\t\t\tPetr \"Pasky\" Baudis\nStuff: http://pasky.or.cz/\nVI has two modes: the one in which it beeps and the one in which\nit doesn't.\n"}]}