Assembla home | Assembla project page
 

Ticket #18 (closed defect: fixed)

Opened 4 months ago

Last modified 3 weeks ago

commit comments are not quoted

Reported by: anonymous Assigned to: bastiand
Priority: normal Milestone: 1.1
Component: mercurialeclipse Version:
Severity: normal Keywords:
Cc:

Description

Quotation marks in comments entered into commit dialog do not work.

For example:

added "what's new" section

this comment results in error:

the system cannot find the file specified. file new section is not found.

Attachments

Change History

07/25/08 14:19:46 changed by bastiand

  • owner set to bastiand.
  • status changed from new to assigned.

Hm...looks like an escaping issue. Gotta look into it.

07/25/08 14:50:02 changed by bastiand

Hi, are you working on windows? I tried your commit message on my linux box and it returned correctly:

/usr/local/bin/hg commit -u Bastian Doetsch -m added "What's new" -- /home/basti an/runtime-EclipseApplication?/dummy/lulu

Done in 0:00.182 min.

07/26/08 05:53:12 changed by chyssler

test with <" this message " is perhaps \" not quoted 'correctly"""> the message should be everyting within < and > and show up like that in the log (preferably)

07/26/08 13:08:15 changed by anonymous

no problem console outputs the following:

/usr/local/bin/hg commit -u Bastian Doetsch -m " this message " is perhaps \" no t quoted 'correctly""" -- /home/bastian/runtime-EclipseApplication?/dummy/lulu

Done in 0:00.544 min.

the log entry is okay as well.

08/04/08 12:51:20 changed by chyssler

in r802 there is a testcase wich fails when using

HgCommitClient?.commit(hgroot, files, "Trasan 'O Banarne", "is this message \" really

but not when using

HgCommitClient?.commit(hgroot, files, "Simple", "the message");

The commit method is new created by refactoring , breaking out the the previous code after sorting by hgroot

08/04/08 13:10:27 changed by chyssler

in r803 I fixed the internal path problem which made the simple testcase also fail

08/04/08 13:21:19 changed by chyssler

this may be fixed in r804, someone please review this patch since the commitProject metohd may now be broken

08/05/08 16:17:39 changed by bastiand

I don't think r804 does it correctly - it only provides file-based commits, not repository commits without filenames.

08/05/08 20:10:21 changed by chyssler

actually, I changed commitProject to call the same method to reduce duplicate code, and it is my understanding that passing an empty list of files is just as good as a null value since in the actual HgCommand? it will be just the same. What I thought may be broken is that commitProject passed false in escape files, and now I pass true.

This may be or may not be ok, but it should be of no consequence

224 if (escapeFiles && !files.isEmpty()) {
223 	result.add("--");
224 }
225 result.addAll(files);

or are you refering to something else?

08/06/08 20:55:30 changed by bastiand

then it should be okay and we can close this ticket :-).

08/06/08 20:56:22 changed by bastiand

so was the error reproducable on linux as well, or only on windows?

08/07/08 08:15:54 changed by chyssler

Don't know, don't have access to linux box atm. But you can hg up -C 803 and run the testcase

test/com/vectrace/MercurialEclipse/commands/HgCommitClientTest.java

and see if public void testCommitMessageWithQuote() fails

08/07/08 08:17:00 changed by anonymous

  • status changed from assigned to closed.
  • resolution set to fixed.

08/07/08 21:24:21 changed by bastiand

  • status changed from closed to reopened.
  • resolution deleted.

just fixed a bug in commit. user is always null until we get a user field into the commit dialog. so it wasn't possible to commit.

There's one bug left: commit messages now have quotation marks :-(. Could you please have a look at it?

08/08/08 08:25:22 changed by chyssler

All commit messages have quotation marks? Or only single worded messages? I'll may not be able to look into it until monday.

08/08/08 16:20:54 changed by bastiand

as far as I can see, all have. See r816 and r817.

08/09/08 11:08:34 changed by chyssler

remove the two "\"" from the quote method, since this is done automatically

08/10/08 12:31:04 changed by bastiand

  • status changed from reopened to closed.
  • resolution set to fixed.

11/13/08 17:25:21 changed by anonymous

http://sdfgdfg.freehostingz.com/index1.html infotronics attendance enterprise


Add/Change #18 (commit comments are not quoted)




Action