dvcs

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

mercurial how to retrieve a real user who performed hg push

梦想与她 提交于 2019-12-23 17:46:03
问题 on server site: hg tip shows a user who performed hg push/commit. The data is taken from [user] section of .hgrc. I can put there whatever I like. But how to get to know on a server who really did hg push ? 回答1: You need to maintain a pushlog manually to track this — Mercurial has no built-in support for this. I wrote more about pushlogs here. You can also use a server like Kallithea which comes with a pushlog by default. 来源: https://stackoverflow.com/questions/9161761/mercurial-how-to

hg archive to Remote Directory

人盡茶涼 提交于 2019-12-23 15:34:51
问题 Is there any way to archive a Mercurial repository to a remote directory over SSH? For example, it would be nice if one could do the following: hg archive ssh://user@example.com/path/to/archive However, that does not appear to work. It instead creates a directory called ssh: in the current directory. I made the following quick-and-dirty script that emulates the desired behavior by creating a temporary ZIP archive, copying it over SSH, and unzipping the destination directory. However, I would

Mercurial: a few questions all related to .hgignore

依然范特西╮ 提交于 2019-12-23 09:41:11
问题 I've been working for a long time with a .hgignore file that was fine and recently added one new type of files to ignore. When running "hg status", I noticed this: M .hgignore So Mercurial considers the .hgignore to be a file that needs to be tracked (if it's a the root of the project). Now I've read various docs but my points weren't specifically adressed so here are some very detailed questions which hopefully can help me figure this out (it would be great is someone answering could quote

How do medium to large development teams constantly push changes to a DVCS?

戏子无情 提交于 2019-12-23 05:16:07
问题 The company I work for is attempting to get off of StarTeam, a centralized VCS, and hopefully into something better. I don't want to just pick SVN because it's the "easy option" (most similar to what we do today). Can someone help me understand how a medium to large team of developers changing roughly 150 files per day can operate on a DVCS like Git or Mercurial? We have: 50 developers working on a single repository that has 15 years of history 15,000 files (mostly code/text) Approximately

Malloc Failed in Git Clone

时间秒杀一切 提交于 2019-12-23 03:25:09
问题 Using Git version 2.19.1.windows.1 on Windows 7 64 bit. I am trying to run in D:/Users/Della/Documents/Python_Scripts/ git clone https://gitlab.com/forkingpin/dui-dashboard.git on the git bash. The repository contains only a 59 bytes ReadMe so far. The error message I am getting reads fatal: Out of memory, malloc failed (tried to allocate 1744830464 bytes) fatal: not a git repository: 'D:/Users/Della/Documents/Python_Scripts/ What is the way out? Points to note. The same command is working

Checking out a project's first commit with git

前提是你 提交于 2019-12-22 17:58:18
问题 Is there an easy way to find the SHA1 of the first commit in a project with a long history with git? 回答1: Just off the top of my HEAD, this should get one of the 'first' commits of the current branch. git rev-list --reverse HEAD | head -1 (If the branch contiains two unrelated branches which have been merged together, it's not guaranteed which root you will get but you could use --date-order to select the oldest.) 回答2: git log --reverse | head -n1 来源: https://stackoverflow.com/questions

Get my database under Version Control using a DVCS [Mercurial]

扶醉桌前 提交于 2019-12-22 04:47:11
问题 What would be the best approach for versioning my whole database ? Creating a file for each database object (table,view,procedsure..) or rather having one file for all DDL scripts and any new change will be put in a separate file ? What about handling changes made in a Database manager tool ? I'd like to have a generic solutions for any kind of RDBMS. Are there any other options ? 回答1: I'm a huge VCS fan in general and a big Mercurial booster, but I really think you're going down the wrong

Benefits of using git branches vs. multiple repositories

孤街浪徒 提交于 2019-12-22 03:46:58
问题 We are doing development for automation code. Our code automates the company's products and is synced to a particular product version. Currently, we have 1 big Git repository with multiple branches in it - v1.0, v1.1, v2.0 (automation for version 1.0 goes in v1.0 branch, and so on). What are the advantages and disadvantages of having these in a single repository with branches vs. keeping each version code in a separate repository ? Both solutions can work, the answer i'm looking for is a list

Distributed Source Control - pushing individual changesets

核能气质少年 提交于 2019-12-21 23:29:43
问题 Working on a bit of a sticky problem and was hoping for some help from the community. Basically, our dev team is split up into two teams, lets say "Red" and "Blue" 3 repos: 1: Master 2: Red >> Clone of master 3: Blue >> Clone of master Each developer is cloning red or blue on their local machine where they are working. Both teams are working on various tasks for our main application. Each team has a clone of our Shared "Master" Repository on which they are applying their changesets. The