logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

In long comment, stuff after "***DARCS***" is not ignored.: msg#00609

Subject: In long comment, stuff after "***DARCS***" is not ignored.
When I enter a long comment, the stuff after "***DARCS***" isn't
ignored.  The problem looks like it has to do with DOS vs Unix line
endings.  I'm using Win32 Darcs and Win32 GVim on Windows 2000.

To reproduce:

1. Set the environment variable DARCS_EDITOR="gvim -f"
2. Open a "cmd" shell.
3. > darcs initialize
4. > gvim File.txt
  [Add a couple lines to File.txt]
  [Save the file in DOS format]
5. > darcs add File.txt
6. > darcs record -a
  [Set patch name to "Add File.txt"]
  [Say 'y' to add a long comment]
  [GVim opens up.  Autodetects DOS file format.]
  [Add a long comment, save in autodetected format (DOS)]
7. Darcs says: "'inished recording patch 'Add File.txt"
  [looks like the "\r" is causing trouble]
8. > darcs changes
  [All the stuff after "***DARCS***" shows up]

When editing the long comment in Vim, I saved a separate copy of the
file.  That extra copy has the proper DOS line endings.  But when I
open up the file in "_darcs/patches/", some of the lines have "\r",
some don't.

Stuff that has "\r":
  - Patch name
  - Long comment
  - All the stuff that was supposed to be ignored (including the
"***DARCS***" line)
  - The content of the diff hunk (the lines in "File.txt")

Stuff that doesn't have "\r":
  - "cakoose@xxxxxxxxx**20041028235713"
  - "addfile ./File.txt"
  - "hunk ./File.txt 1"
  - The lines with the braces and brackets.

When editing the long comment in Vim, if I force Vim to save with
Unix line endings, everything works fine.
  - The "darcs changes" don't have the extra lines
  - The file in "_darcs/patches/" only has "\r"s on the contents of
the diff hunk.
  - The line that says "Finished recording patch 'AddFile.txt'" comes
out OK (the first character isn't overwritten by the last single
quote).

By the way, "unrecord" is awesome.  Without that feature, this bug
would have caused a LOT more pain.



        
                
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe