Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 778441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:45:52+00:00 2026-05-14T19:45:52+00:00

It just happened to me that I commented out a line of code for

  • 0

It just happened to me that I commented out a line of code for testing reasons and ended up checking the code back into the repository with the commented line.

E.g. I set a rule for a job in Eclipse RCP on one line. While developing a new feature I commented out this one line so the rule does not get set.

After a couple of hours the new feature was completed and ready to be commited into SVN. While I changed a lot of things I usually just quickly double-check my changes by doing a synchronize with repository (in Eclipse) and skim through all classes doing some sort of in-mind sanity-check (i.e.: asking myself did I really touch this class?).
But I don’t check every single line.

So in this case I didn’t remember the commented line and it got commited to SVN.

Now, I was wondering if I could find some automatism to prevent these kind of mistakes.
I thought about making a code-template or a task-tag and marking the commented line with this. And then check for this task-tag in an svn pre-commit hook.

I googled for some time now but could not find anything. Does anyone know a way of doing this? Or maybe something that gets close to this and just needs minor changes to achieve what I’m looking for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T19:45:53+00:00Added an answer on May 14, 2026 at 7:45 pm

    Borrowing from spong’s idea… how about putting some indicator in the comment (FIXME) if it needs to be uncommented. Pre-commit hook can do an svnlook diff and look for FIXME and prevent commit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just happened to read jQuery Intellisense Updates from Microsoft and was wondering if
Just looking for the first step basic solution here that keeps the honest people
Just how much slower are events? I have written a streaming XML parser (that
I've just fixed a very subtle bug in our code, caused by slicing of
Just what the title says, I need to change the password for an existing
just a quick question: I am a CS undergrad and have only had experience
Just bought a 2.4GHz Intel Core 2 Duo iMac with 2GB of memory and
Just getting my head around Ruby metaprogramming. The mixin/modules always manage to confuse me.
just wondering if anyone knows of a truly restful Put/delete implementation asp.net mvc preview
Just installed the latest SDK for iPhone 2.1. When I go to File ->

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.