commit

Should I checkout the full branch when performing only commits with Subversion?

I have a repository structure that looks like so: + tags + trunk + source + dotnet + flex + branches + milestone1 + dotnet + flex + milestone2 + dotnet + flex Typically, the .NET developers only checkout the 'dotnet' folders for the branch they are working in. Flex developers likewise chec...

When using Trac and SVN together, how will I know that a file is committed to solve a certain ticket?

For example, a file is modified to do an enhance ticket, what I want to do is associated the committed file to the ticket. When using Trac and SVN together, how will I know that a file is committed to solve a certain ticket? Is this possible? Thank you. ...

SVN manage settings between computers

I work from several different locations on the same project and I use SVN to checkout wherever I happen to be working. I have a settings file that needs one line changed depending on where I'm working, but otherwise, it's a relatively static file. It's a bit annoying when every commit the file is just switching that one line back and for...

Subversion and mixed-revisions: recipe for broken builds?

Hello all I'm just comming back to subversion after using TFS for some time and generaly i'm quite exited :) There is one thing i remember differently. I don't remember beeing able to commit from an out of date working copy. Or maybe my memory just fails me on the definition of "out of date". I thought "out of date" meant that any fil...

git find fat commit

Is it possible to get info about how much space is wasted by changes in every commit — so I can find commits which added big files or a lot of files. This is all to try to reduce git repo size (rebasing and maybe filtering commits) ...

GIt - get all commits and blobs they created

Is there a git command that can output for every commit: id subject blobs it created with they path and size (like git ls-tree -l -r <commit> but only for created blobs) ...

SVN out of date error

Hi, I had a problem in one of my projects, I decided to checkout an older revision and do a few modifications to it. I am now trying to commit this older modified revision and any contained changes to HEAD. When I do the svn ci -m "reverting with some changes" it gives me: svn: File '/trunk/main.c' is out of date I tried doing an up...

Importing a text file into SQL Server in Python

I am writing a python script that will be doing some processing on text files. As part of that process, i need to import each line of the tab-separated file into a local MS SQL Server (2008) table. I am using pyodbc and I know how to do this. However, I have a question about the best way to execute it. I will be looping through the f...

Multiple "git add" before "git commit"...

Here is my experiments. git init echo hello > some.txt git add some.txt -- objects -- f2 (blob "hello") echo hola > some.txt git add some.txt -- objects -- f2 (blob "hello") -- 53 (blob "hola") git commit -m "..." -- objects -- f2 (blob "hello") -- 53 (blob "hola") -- 5c (tree "some.txt" -> 53) ...

Access Transactions in Code with Commit and Rollback

I've been asked to try to roll back some database changes if there was an error. Before I even start trying to use a TRANSACTION with either COMMIT or ROLLBACK, could someone tell me if I can do the following in MS Access? void Start() { try { AccessDatabaseOpen(); // Opens the access database foreach (File in FileList) { ...

Linking a Ticket in Trac to a Changeset

By using Intertrac we are able to link the change set to a ticket using the syntax: prefix:#ticketnumber This is useful when viewing change sets and seeing which tickets it links to. I also noticed you can do a search on the above link and it will return all the changesets pertaining to that ticket, my question is How can we insert a ...

Receiving "MERGE" 200 OK error when committing using trac-post-commit-hook

When running a commit with the trac-post-commit-hook I receive a MERGE 200 OK error, I understand that this means that the commit has succeeded on the server but the file status has not updated on my local machine. But I can't find anyway to fix this issue. Would this be a problem with my setup or something in the script. I'm using s...

Using TortoiseGit, can I commit and svn dcommit in one step?

I am using TortoiseGit and am working with an svn repository using git-svn. Sometimes I want to make a one line change and dcommit it to the svn repo immediately (so the CI server will pick up the change). Currently I have to git commit, then dcommit. It's an extra step for something I want to do quickly...it would be nice if I could j...

sqlite DB not updating?

-edit- nevermind, i made a mistake in my select statement. Update was working correctly. I am not sure why but my sqlite DB isnt updating. I can see that this query returns 1 for a table that is affected but when i close my app or run a certain select statement it is as if this update never happened. 2 notes. 1) My inserts work fine, 2)...

Combine Local Git Commits into One Commit with git-svn

Currently, when I run git svn dcommit git creates a separate commit in SVN for every local commit I've made since last syncing with SVN. Is there any way for dcommit to instead combine all my recent local commits into one commit for SVN? ...

SVN: How to commit without entering password?

Hi there, I need to create a script that backups a couple of files on a SVN repository during the night, since the files are secure I can commit them without entering a username (is that even possible?) or password. Possible solutions I came up with: - creating a dummy user without password or with a known password but this poses a se...

Which SCM/VCS cope well with moving text between files?

We are having havoc with our project at work, because our VCS is doing some awful merging when we move information across files. The scenario is thus: You have lots of files that, say, contain information about terms from a dictionary, so you have a file for each letter of the alphabet. Users entering terms blindly follow the diction...

How to undo "git commit --amend" done instead of "git commit"

I accidentally amended my previous commit. The commit should have been separate to keep history of the changes I made to a particular file. Is there a way to undo that last commit? If I do something like git reset --hard HEAD^, the first commit also is undone. (i have not yet pushed to any remote directories) ...

GIT and VMWare/Volumes

I have MacBook and Ubuntu Server on it as part of VMWare fusion virtual machine. When I use GIT on my local disk (Mac) everything is working perfectly but when I try to use git on volumes I have problems. For example /Volumes/vm1/webfolder is my local .git repository. If I create clone like $git@myserver:byrepo.git then I check for c...

DVCS - How often and when to commit changes

There is another thread here on StackOverflow, dealing wih how often to commit changes to source control. I want to put that in the context of using a DVCS like git or mercurial. How often and when do you commit? Do you only commit changes when they build correctly? How often and when do you push your changes (or file a pull request o...