Skip to contentSkip to conversation

Random notes about qgit

DISCUSSION Pavel Roskin 1 participant 3 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello, Marco!

Here's some assorted notes about current qgit.

Thanks for making the range dialog optional, but now I don't see any way to see the local changes unless I re-enable the dialog. I think it should be an action activated from the menu - "diff local files to this revision". Or maybe the "local" radio button in the diff pane.

Current qgit seems to have another crash, also annotation related. Run qgit on its own repository. Select "Add range select dialog options", then double click on src/commitimpl.cpp in the file list. Sometimes it works, sometimes it crashes like this:

ASSERT getFileAnnotation: no revision
9771bea705024b3d0a59e1b9144adf5d77ca82d1

Sometimes you need to select other revisions and double click on other files. Another assert I got was:

ASSERT getFileAnnotation: no revision
bbf2abcbcafc2e458343034c8f249ac4956ec4fb

"git-cat-file commit" works fine on both revisions. Just in case, I'm seeing this on x86_64.

"View->Revision Diff" and "View->Archive Tree" work differently. The former doesn't allow to turn the pane off. I'd like it to work like "View->Archive Tree". Neither can "Revision Diff" be closed from the popup menu.

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw
In reply to a message not in the archive
Quoted 10 lines · Marco Costalba
Quoted 5 lines · Pavel Roskin

Thanks for making the range dialog optional, but now I don't see any way to see the local changes unless I re-enable the dialog. I think it should be an action activated from the menu - "diff local files to this revision". Or maybe the "local" radio button in the diff pane.

Actually you could re-enable working dir diffs from menu->edit->settings->'git index'

Indeed. Thank you!

Quoted 1 line

Do you think is too hidden?

It shouldn't be an option. It should be an action, available on demand, regardless of options. In the majority of cases, only diff to the head revision is needed, but some users may want to see diff against other revisions, e.g. when verifying manual merge.

Maybe there should be an option to check the local diff on startup and indicate it somehow (not necessarily in the revision list) if it's not empty.

But I'm not a GUI expert and I don't know how to make it easy to discover without being constantly in the way.

Quoted 10 lines
Quoted 7 lines

Current qgit seems to have another crash, also annotation related. Run qgit on its own repository. Select "Add range select dialog options", then double click on src/commitimpl.cpp in the file list. Sometimes it works, sometimes it crashes like this:

ASSERT getFileAnnotation: no revision
9771bea705024b3d0a59e1b9144adf5d77ca82d1

I cannot reproduce the bug but please Pavel, add qDebug() lines in git.cpp as following:

OK, this will be a in separate thread.

Quoted 7 lines
Quoted 5 lines

"View->Revision Diff" and "View->Archive Tree" work differently. The former doesn't allow to turn the pane off. I'd like it to work like "View->Archive Tree". Neither can "Revision Diff" be closed from the popup menu.

Yes, "View->Revision Diff" should be a toggle action. ;-)

OK

Signature · 2 lines
Regards,
Pavel Roskin
#3 lore raw

getFileAnnotation: no revision

In reply to a message not in the archive
Quoted 2 lines · Marco Costalba

I cannot reproduce the bug but please Pavel, add qDebug() lines in git.cpp as following:

Please use a mail client that doesn't damage inline attachments, or use attachments. The diff was wrapped before it was base64 encoded. I had to unwrap it manually. Although, I guess you don't have much choice with Google.

I had to replace %i with %li and (int) with (long) to make the compiler happy. It's a 64-bit platform.

Quoted 1 line

Then, please, try to reproduce the crash and send me the output.

$ bin/qgit
Git::cancelAnnotate 0
Git::getFileHistory src/commitimpl.cpp
Git::startAnnotate 7943344
Git::runAnnotate 7943344
ASSERT getFileAnnotation: no revision
bbf2abcbcafc2e458343034c8f249ac4956ec4fb
cancelingAnnotate 0
Segmentation fault
Signature · 2 lines
Regards,
Pavel Roskin