version-control

Applying commits from one subtree to another in same repo

牧云@^-^@ 提交于 2019-12-24 02:05:29
问题 I've been using git-p4 to clone parts of a Perforce repo into a git repo. The tree I've checked out has the following Perforce "branch" structure: repo/releaseA repo/releaseB repo/featureA repo/featureB I have a bunch of git commits in my local git repo to the featureA directory; however, I'd like to "rebase" those commits onto the featureB directory instead. Is there a way to translate a set of patches/commits that were originally applied to one directory onto another instead? 回答1: Yep. If

How to handle different versions of source code?

随声附和 提交于 2019-12-24 01:55:22
问题 Initially we didn’t use any source control software. Now we are using TFS 2010 for version control. Currently we are facing issue related to how to handle changes with production code and code that is under development. Assuming we have published a version 1.0 to the web using visual studio 2010 publish with source code x. Now we continue to work on the source code to implement more features. Noow the source code has changed to x.something. During that time we receive bugs reported by users.

Can I check that the diff between two versions of a file solely contains a new prefix that I've added?

南楼画角 提交于 2019-12-24 01:32:06
问题 Background As part work to abstract a few classes to one interface, I've had to changes a file which makes use of one of these old classes to now point it to the interface fields. The file previously would have looked something like this (simplified for example). public class Foo{ public string RetrieveValue(MyModel model) { return model.Area.Street.Flat; } public string RetrieveOtherValue(MyModel model) { return model.Area.Shop; } } But would now look like this. public class Foo{ public

Making Delphi 7 play nice with source control? [closed]

邮差的信 提交于 2019-12-24 00:46:59
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Hello I've been having to work in a Delphi 7 project recently and one thing that constantly bugs me is the *.dfm files. Anytime I even

Making Delphi 7 play nice with source control? [closed]

假如想象 提交于 2019-12-24 00:41:06
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Hello I've been having to work in a Delphi 7 project recently and one thing that constantly bugs me is the *.dfm files. Anytime I even

Mantaining a CMS and websites with Mercurial

南楼画角 提交于 2019-12-24 00:37:18
问题 I'm pretty new to mercurial and after reading a few tutorials I'm still doubtful on what's the best way to do what I intend to do with it. My goal would be to mantain a CMS that I'm developing (adding new features, fixing bugs, etc.) and being able to easily distributes those updates to websites I make with said CMS. I started by making a repository for the CMS itself, then when I want to make a new website clone the CMS repository and work on it. Now the questions: working on a website there

Can I make `git merge` always conflict on file changes?

你离开我真会死。 提交于 2019-12-24 00:28:43
问题 I am hoping I have a simple question for you, but I can't find an answer anywhere (I have been searching for 2 days, maybe I am dumb?). I am trying to develop a git workflow to collaboratively edit LaTeX files with my PhD adviser. The problem we face is due to the behavior of git merge (because it merges automagically). I want git to conflict anytime it sees a file change, even if it is an addition, subtraction, or minuscule change, is this possible? This way we can both pick and choose

How to use clearfsimport to import files into an empty VOB

佐手、 提交于 2019-12-23 21:59:34
问题 I created a VOB and a snapshot view that loads it. The VOB is empty and I wanted to add some files to initialize it, but I got errors for all files that I wanted to import. Here is the details. The VOB is created by this command: ct mkvob -tag /vobs/sqlite -comment "testing VOB for Sqlite" -public /var/clearcase/vobs/sqlite.vbs The view is created by this command: ct mkview -tag sqlite-dev -snapshot /home/clearcase/working/sqlite-dev The config spec is: element * CHECKEDOUT element * /main

How do I check which changeset my workspace is in

十年热恋 提交于 2019-12-23 21:31:40
问题 In Team foundation server, In order to analyze a bug that is currently in production, I used the "get latest version" functionality to get the changeset that was active in production so that I could run my unit tests against it. I want to double-check which changeset I got just to make sure that I actually did get the correct version of source code. Is there an easy way to do this with tfs? 回答1: If you bring up the file/folder in Source Control Explorer, right-click and go to Properties it

git log revision range gives incorrect range of commits

和自甴很熟 提交于 2019-12-23 21:04:32
问题 I am trying to use list all commits within a given range on a branch using the argument of git log . For some reason it doesn't seem to be giving me the right result (or maybe I'm understanding the command wrong?). Here's the steps for what I'm doing: Clone the repo git clone https://github.com/openstack/nova.git Do git log and these are the last 9 commits: d5bde44 Merge "Make metadata password routines use Instance object" 6cbc9ee Merge "Fix object change detection" 39b7875 Merge "Fix object