commit

Massive git commit squashing

My company is in the middle of converting from CVS over to git. We've been on CVS for a long time, so there is a huge history. Too much to do by hand. Looking at the logs, there is a lot of squashing that could be done. A whole lot. What I would like to do is hook in a script that will compare two adjacent commits. If it returns true, t...

svn import, dont modify revision OR modify the list of files in a transaction

Hi Ive gained so much knowledge/insight from this site in the past few years, now im actually hoping to get some enlightenment. The scenario is as follows: You have the general structure of the repo (trunk,branches,tags) but added to the layout you have another directory called 'db_revs'. Now in the pre-commit, you take a dump of a spec...

How to read changed values with native query during one transaction? (Spring and JPA)

We have container transaction with Spring and JPA (Hibernate). I need to make an update on a table to "flag" some rows via native statements. Then we insert some rows via EntityManager from JPATemplate to this table. After that, we need to calculate changes in the table via native statement (with Oracle's union and minus, complex groups....

Auto-commit to SVN with Java

I run a lot of my projects for work using java name.java I was wondering if there was a way to add a hook to it where it would commit to SVN once that command is ran? Thanks! ...

Revert a file on SVN repository but keep local version

I accidentally committed some changes to the repository that were not complete. I do not want to lose my local changes, but i want to revert the file in the repository to where i was before i committed the changes. ...

Git: How to clone the first commit?

Could anyone tell me how to clone the first commit? I don't want to delete recent commits, just make a clone copy of the initial state so I can grab some of the files. ...

TortoiseSVN: commit has been ignoring me?

Hi, I'm currently writing my master thesis and I'm using TortoiseSVN to keep a backup at freepository.com. I've been religiously committing several times a day, since I'm working hard and making many changes a day. Today I committed again and strangely enough I got an error saying that my working copy was out of date, which makes no sen...

Is there a guarantee that svn automatically merges concurrent "add line" and "delete line" to the same file?

I have a distributed system which uses XML files in an SVN repository as a means of communication (as you may guess from that, communication normally is slow). Some processing nodes add or delete some data to a repository, another processing node takes this as an input event and reacts accordingly. At the moment, everything's fine, but ...

How do I exit VIM when doing a command line mercurial commit?

I'm on a mac running snow leopard. I have mercurial 1.1 installed. After I hit "esc" to exit insert mode I can't figure out how to save and quit. Hitting control+c shows me instructions that say typing "quit" will write and quit, but it doesn't seem to work. ...

What happens in Git to a tag when you amend the commit that was tagged ?

Hi. I have commited a few source files to my git repository and tagged it as a new version of my software. But I saw a mistake I had just made and used the "amend" feature to commit the corrected files. Now, I see that the tag was not transferred to the new commit (the one made with the "amend" feature). But I can also see that the tag...

Git: How to ignore fast forward and revert origin [branch] to earlier commit?

Hi, I used git reset --hard dc082bc... to revert to the branch back to a required previous state, due to some bad commits. This has rewound my local branch fine. However, I want to rewind the branch on 'origin' to the same commit so that I can start again. Could anyone tell me how to revert the origin branch (not master) to this com...

How can a patchfile created with `git-log -p <filename>` be applied to create all the commits included?

Background: this question. git apply <patchfile> just recreates the file but without committing the history, which in this case would be desireable. Is there any switch for git-apply to do so? Or is there a way to convert the patchfile into a git-am compatible file? (Currently, git-am complains "Patch format detection failed") ...

dml by multiple users/commit scenarios in oracle

Hi, How does oracle treats dml statements executed by multiple users on the same data object?. Suppose, If there is a empty table named EMP(empname varchar2(30)) and user 'A' makes an entry into it using, insert into emp values('A'); but hasn't committed it yet. If another user 'B' logged into the same database commits, would he/sh...

Windows file permissions affect subversion read/write privileges

I recently set up a repository using VisualSVN Server. It uses Windows Authentication. Some users are having problems committing projects to the repository. (They have no problems checking out repositories). The BUILTIN\Users group has read-only access for the entire repository and the individual users have read/write permissions setup ...

SVN commit error: "'.' is not a working copy"

I can SVN-update and browse the repository just fine. The .svn directory exists in every folder across the checked out code tree. Only commit is broken for some reason. Any idea what could cause this? ...

What commit styles are available in MongoDB?

In some sense, the default "save" operation appears to be asynchronous in MongoDB. It seems that when a client saves a document, it will typically receive a successful response immediately from the server, even if the operation has not yet been applied to the database (let alone committed to disk). (I'm basing this model for how save()...

How to fix GITHUB commit date?

Hi all, I am working on a github hosted project. For testing reasons, I have to move my computer date to somewhere in the future (2012) and forgot to bring it back to normal time when doing a git commit / push. The actual commit is now actually saved as 2012 instead of 2010 and it's screwing our github view since they always appear on...

Can TortoiseSVN provide a cross-repository view of user activity?

Is there a way I can see my commit history for a given time period across multiple repositories using TortoiseSVN? It would be nice to be able to see this, and it's a little cumbersome to get my complete commit history if I'm working in multiple repositories. ...

git - pushing specific commit

I have made several commits on different files, but so far I would like to push to my remote repository only a specific commit. Is that possible? Thanks ...

How do I avoid committing small changes in git?

I'm wondering, how could I avoid a commit in really small changes of code. For instance, sometimes I miss a space between parameters or that kind of tiny code formatting. The reason I ask this is because later I have to push my commits to a remote repository and I don't want to include those small changes. Any ideas? Thanks ...