commit

make a cross change in a file with mercurial

I'm new to mercurial, so may be my question is stupid. Let say you made a mistake when you first started working on your code. For example, you putted instead of Now you want to change this, but not only to the latest revision, but to all revisions and versions of your page. Is this possible? ...

Commit certain number of records to DB with java

I have table in DB,e.g. TableOne. By some rules i should commit N records from this table to other tables. Is it possible to do with jdbc or ResultSet or CachedRowSet? Preliminary flow, as i see: 1. loop through ResultSet of TableOne 2. increment counter if certain condition is met 3. if condition is not met, it's time to commit to othe...

Best code review tool for GIT

Is there a an open source or free code review tool that works best with GIT? 1.Have tried gerrit but is there a better open source or free code review tool? 2.Is there a code review that is capable of showing changes in the web before the user commits to the repository? Does ReviewBoard or any other tools have this feature? ...

Move commits from master onto a branch using git

I'm trying to learn how to use Git effectively and I'm wondering how I should (good practice/bad practice?) solve the following case: Say I have the following chain of commits in master: Initial commit Commit 1 Commit 2 Commit 3 Then I realize that what's done in the last two commits is completely wrong and I need to start from Comm...

svnclient.commit() + without usercredential

Hi How to avoid usercredentials while doing svnclient.Commit(). Note: I have to save updated xml file in SVN server using svnclient.Commit() without user credentials. SvnClient client = new SvnClient(); client.Authentication.DefaultCredentials = new NetworkCredential(UserName, PassWord); I want to skip the above code while...

Subversion (SVN) and static libraries (.a files) compatibility ?

Hello everyone, I can't add .a files (static libraries) into my repository. Why ? Is there any way to "force" SVN to accept them (at least as static files...) ? Thank you ...

how do I get MSTest to run as Administrator, when called from a console app?

This console app code calls MSTest and starts to run the unit test but fails with "Access Denied" to some assemblies required for unit testing (see errors below code). Any way to smoothly make MSTest to run as Admin from here? I tried a manifest, didn't change anything, since the manifest refers to the calling app, not to mstest, right...

GIT: commit changes to old/safe branch while in new/dirty/dev branch without checking out or losing unstaged data

I created a new Branch before I started dev on something experimental. I usually forget that (which isn't a problem), but now I did it beforehand. Since then I have updated 3 files. In 2 are only experimental changes that I DON'T want committed to the safe branch. In 1 are only safe (minor) changes that I definitely DO want committed...

GIT: is a tag unique per commit?

If you can use a tag only once (unique by commit), what do I do with 7 commits in tag "Version 7.3"? I hate that GIT doesn't make revision numbers (like SVN :)). I guess a subquestion would be: What would be a best practice to 'control' version numbers (ex revisions, so I want to save major.minor in every commit and DEFINITELY in every ...

MySql stored procedures, transactions and rollbacks

I can't find an optimal way to use transactions in a MySql Stored Procedure. I want to rollback if anything fails: BEGIN SET autocommit=0; START TRANSACTION; DELETE FROM customers; INSERT INTO customers VALUES(100); INSERT INTO customers VALUES('wrong type'); COMMIT; END 1) Is autocommit=0 required? 2) If t...

Nubie swimming in git lit: How exactly does git checkout affect commits and stashes?

I'm not finding my answer in the online git lit. It is clear that git checkout is destructive in that it will throw away local modifications but does it also destroy commits by changing the structure of the tree? For example, say I have three commits a <-- b <-- c | HEAD + stash c and HEAD is currently at c an...

UserTransaction issue in java

I have existing project which uses 2 database (DB2),and the records which are saved in the 2 databases are related.So the transactions need to be maintained.Eg whenever a new thing is to be added then entries must be done to x number of tables in Database1 and and y number of tables in database2. Now in the code that is preexisting(devel...

Unable to commit a directory tree with SVNKit

Hi, I've a directory containing files from a legacy build system. i want to recreate the timeline of this build system in a SVN repository. For that, I have to take each build, extract all its files, put them in a sensible directory structure, commit the whole directory structure to svn, and create tags for each build (in order to easil...

Internet connection Drops during an SVN commit

Hi ! During a large commit to a remote SVN repository, if the internet connection drops - will I have to start the commit again? OR will it "continue" where it left off ? Thanks Ojo ...

How to solve the svn error "Entry for 'xxx is marked as 'copied' but is not itself scheduled for addition."

When I try to commit a specific file (xxx.java) following error pops up: svn: Entry for 'C:\aaa/bbb/ccc/xxx.java' is marked as 'copied' but is not itself scheduled for addition. Perhaps you're committing a target that is inside an unversioned (or not-yet-versioned) directory? How to solve this SVN-Error? ...

Git: Best way to add only some parts of a file from another branch?

Let's say you have a branch master and another branch production, both containing a version of the file prog.py, as well as many other files. Imagine that you modify many files in the production branch, including prog.py. Now, what is the best way of having only some changes made on prog.py in the production branch be applied to its ve...

Head commit for all remote branches using Git

I know how to list the remote branches $ git branch -a And I know how to find the head commit hash of my current branch $ git rev-parse HEAD But I'm not sure how to list all the head commit hashes for all the remote branches. This is close to what I want but what order are they in? $ git rev-parse --remotes 4b9f7128e9e7fa7d72652b...

How do I make a Git commit in the past?

I'm converting everything over to Git for my own personal use and I found some old versions of a file already in the repository. How do I commit it to the history in the correct order according the the file's "date modified" so I have an accurate history of the file? I was told something like this would work: git filter-branch --env-...

What does this error mean?

svn: Commit failed (details follow): svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found new...

git: Why am I ahead of origin/master with X commits after I do 'git push'?

I am using a bare git repository on a server for backup, and push local changes there with 'git push' after doing 'git commit' locally. 'git status' tells me # On branch master # Your branch is ahead of 'origin/master' by X commits. If I modify a file, and then do another commit followed by a push, git tells me that my branch is ahe...