revision

Subversion: Check out only those files affected during a specific commit

谁说胖子不能爱 提交于 2019-11-30 01:57:15
In Subversion, is it possible to check out only those files affected during a specific commit, provided you know the specific revision number? I think that a Subversion check out can only check out a specific folder and not individual files. That said, the command: svn log -r *revision* -q -v will list the changes associated with the specified revision so you could process the output of this command to help copy the desired files to somewhere after checking out a working folder for the full directory. Damian Dennis you can get a list of files modified since a specific revision like this: svn

SVN: How to get the first revision of a file?

若如初见. 提交于 2019-11-30 01:20:19
When working with a subdirectory in a repository, how to find the revision when that specific directory has been added to the repository? By using "svn info http://.." I can find out when it was modified for the last time ("Last Changed Rev"), but I also need to find out the revision number of the commit when that directory (or file) was added for the first time (it's "first" revision). I have been searching for that at the "SVN book", googling, but, obviously, I got no results. Note: I need this for making a PHP script which downloads logs and stores them locally, just to make it clear and

How to list files in specific revision in `git`?

别来无恙 提交于 2019-11-30 00:20:16
问题 I want to know file list in specific revision in git repository. How can I do this? 回答1: See dannyp's answer. git ls-tree -r --name-only $REV 回答2: git ls-tree -r --name-only $REV for example git ls-tree -r --name-only a27689bf7f46dc0735c5b3b6076010c87224063e 来源: https://stackoverflow.com/questions/5215193/how-to-list-files-in-specific-revision-in-git

How can only the files that were modified in a range of SVN revisions be checked out?

喜欢而已 提交于 2019-11-29 23:59:54
问题 Is it possible to checkout only those files from a SVN repository that were modified in a revision or range of revisions, without checking out any files that were not modified? 回答1: My suggestion is in the same lines as flolo suggests. But, takes a range. You could the following shell function. function checkout_files_in_revrange() { svn_url=$1; start_rev=$2; end_rev=$3; for theCheckoutCanditate in `svn log -r $start_rev:$end_rev --verbose --incremental | grep " M " | cut -f5 -d' ' | cut -f3-

Reverting to a previous revision using TortoiseSVN

旧时模样 提交于 2019-11-29 20:57:59
What is the easiest way to revert my working copy to a previous revision using Windows TortoiseSVN ? I did not find any "findable" command to do that quickly. Stefan There are several ways to do that. But do not just update to the earlier revision as suggested here . The easiest way to revert the changes from a single revision, or from a range of revisions, is to use the revision log dialog. This is also the method to use of you want to discard recent changes and make an earlier revision the new HEAD. Select the file or folder in which you need to revert the changes. If you want to revert all

Keeping page changes history. A bit like SO does for revisions

对着背影说爱祢 提交于 2019-11-29 18:11:38
问题 I have a CMS system that stores data across tables like this: Entries Table +----+-------+------+--------+--------+ | id | title | text | index1 | index2 | +----+-------+------+--------+--------+ Entries META Table +----+----------+-------+-------+ | id | entry_id | value | param | +----+----------+-------+-------+ Files Table +----+----------+----------+ | id | entry_id | filename | +----+----------+----------+ Entries-to-Tags Table +----+----------+--------+ | id | entry_id | tag_id | +----

Using svnversion with svn:keywords

佐手、 提交于 2019-11-29 17:10:27
I'm using Visual SVN on my Windows Box. I have Repository Application , which has Framework as an svn:external. All well and good. When I make a checkout of Application , I'd like to have the version of Application and Framework for inclusion in a footer file. This way I could have something like: Application Version $ApplicationVersion$, Framework Version $FrameworkVersion$ Ordinarily, I understand I could use svn:keywords and add the revision - but as I understand it, svn:keywords apply on a per-file basis. A few sites have suggested using svnversion to produce the output for each variable,

Injecting mercurial changeset as version information in a C executable

♀尐吖头ヾ 提交于 2019-11-29 08:23:13
问题 I would like the executables for a project I am working on to have the latest mercurial changeset recorded so that when a user complains about buggy behavior, I can track which version they are using. Some of my executables are Python and others are compiled C. Is there a way to automate this, or can you point me to projects that exhibit solutions that I can look at? I am using autoconf in my project... in case that makes the solution easier. Thanks! Setjmp 回答1: Add this to configure.ac : AM

Checkout the git commit corresponding to a certain revision from the old SVN repository?

我怕爱的太早我们不能终老 提交于 2019-11-29 07:46:20
I migrated my repository from SVN to git. I used THIS site. Now I have a bug in revision X. How do I checkout from my git repository, knowing only the revision number from my old SVN repo? Thank you for your Help. You can find the git commit that corresponds to the Subversion revision with the git svn find-rev subcommand. For example, if you're looking for the commit that corresponds to Subversion revision 3431 you can do: $ git svn find-rev r3431 42ed8bcf690fd0c655c5cee91b09258318fc56e8 Then, to checkout that revision, just use the object name from the first line, e.g. if it's: commit

How to use tags for versioning in git gui

99封情书 提交于 2019-11-29 03:06:47
I'm a complete and utter noob, so be gentle! I'm using git gui, and never touching the command line interface. I'm a noob, and some of the people i'm working with are even noob-ey-er... Current state: - I have a repository on git hub which contains a handful of scripts (henceforth 'code') - I'm using git gui (mysysgit) - I have made commits and push's and have a vague understanding of CVS - I don't believe we will need to branch I feel that I should be able to use tags to create versions of the code. I also 'feel' like there should be an equivelant structure in the filesystem where the