<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/command.py, branch v1.12.28</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v1.12.28</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v1.12.28'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2015-09-01T19:23:56+00:00</updated>
<entry>
<title>gitc: Improve help visibility</title>
<updated>2015-09-01T19:23:56+00:00</updated>
<author>
<name>Dan Willemsen</name>
<email>dwillemsen@google.com</email>
</author>
<published>2015-08-31T22:45:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=9ff2ece6abc5d0d4a69c2f086209f107fd4f04be'/>
<id>urn:sha1:9ff2ece6abc5d0d4a69c2f086209f107fd4f04be</id>
<content type='text'>
This improves the visiblity of gitc-init if we can get the gitc config,
and hides it otherwise.

Change-Id: I82830b0b07c311e8c74397ba79eb4c361f8b6fb5
</content>
</entry>
<entry>
<title>GITC: Add repo start support.</title>
<updated>2015-08-28T17:53:05+00:00</updated>
<author>
<name>Simran Basi</name>
<email>sbasi@google.com</email>
</author>
<published>2015-08-20T19:19:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=b9a1b73425773dc97843f92aeee9c57c9a08c0f7'/>
<id>urn:sha1:b9a1b73425773dc97843f92aeee9c57c9a08c0f7</id>
<content type='text'>
Add repo start support for GITC checkouts. If the user is in
the GITC FS view, they can now run repo start to check out
the sources and create a new working branch.

When "repo start" is called on a GITC project, the revision
tag is set to an empty string and saved in a new tag:
old-revision. This tells the GITC filesystem to display the
local copy of the sources when being viewed. The local copy
is created by pulling the project sources and the new branch
is created based off the original project revision.

Updated main.py to setup each command's gitc_manifest when
appropriate.

Updated repo sync's logic to sync opened projects and
updating the GITC manifest file for the rest.

Change-Id: I7e4809d1c4fc43c69b26f2f1bebe45aab0cae628
</content>
</entry>
<entry>
<title>Support filtering by group on forall and list subcmd</title>
<updated>2015-07-30T17:59:35+00:00</updated>
<author>
<name>Graham Christensen</name>
<email>graham@grahamc.com</email>
</author>
<published>2015-07-29T22:02:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=0369a069ade1602879c16dd33dc592bed3f17c0f'/>
<id>urn:sha1:0369a069ade1602879c16dd33dc592bed3f17c0f</id>
<content type='text'>
Enable operating against groups of repositories. As it stands, it isn't
compatible with `-r/--regex`.

`repo forall -g groupname -c pwd` will  run `pwd` for all projects in
groupname.

`repo forall -g thisgroup,-butnotthisone -c pwd` will  run `pwd` for all
projects in `thisgroup` but not `butnotthisone`.

`repo list -g groupname -n` will list all the names of repos in
`groupname`.

Change-Id: Ia75c50ce52541d1c8cea2874b20a4db2e0e54960
</content>
</entry>
<entry>
<title>repo: Support multiple branches for the same project.</title>
<updated>2013-10-14T22:34:32+00:00</updated>
<author>
<name>David James</name>
<email>davidjames@google.com</email>
</author>
<published>2013-10-12T00:03:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=8d20116038ff78b22069dd4e993b5819775f03d1'/>
<id>urn:sha1:8d20116038ff78b22069dd4e993b5819775f03d1</id>
<content type='text'>
It is often useful to be able to include the same project more than
once, but with different branches and placed in different paths in the
workspace. Add this feature.

This CL adds the concept of an object directory. The object directory
stores objects that can be shared amongst several working trees. For
newly synced repositories, we set up the git repo now to share its
objects with an object repo.

Each worktree for a given repo shares objects, but has an independent
set of references and branches. This ensures that repo only has to
update the objects once; however the references for each worktree are
updated separately. Storing the references separately is needed to
ensure that commits to a branch on one worktree will not change the
HEAD commits of the others.

One nice side effect of sharing objects between different worktrees is
that you can easily cherry-pick changes between the two worktrees
without needing to fetch them.

Bug: Issue 141
Change-Id: I5e2f4e1a7abb56f9d3f310fa6fd0c17019330ecd
</content>
</entry>
<entry>
<title>Optimise regex pattern compilation in FindProjects</title>
<updated>2013-04-30T02:12:01+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2013-04-30T01:57:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=84c4d3c345352650fce4dbc2df27c4977f9d969e'/>
<id>urn:sha1:84c4d3c345352650fce4dbc2df27c4977f9d969e</id>
<content type='text'>
Make a list of compiled patterns once, and then iterate over that
per project, instead of compiling the patterns again on every project.

Change-Id: I91ec430d3060ec76d5e6b61facf6b13e343c90a7
</content>
</entry>
<entry>
<title>Add regex support for subcommand forall</title>
<updated>2013-04-29T10:49:26+00:00</updated>
<author>
<name>Zhiguang Li</name>
<email>muzili@gmail.com</email>
</author>
<published>2013-03-15T02:32:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=a8864fba9fd21f412cd0e2c6e072deeb204049bb'/>
<id>urn:sha1:a8864fba9fd21f412cd0e2c6e072deeb204049bb</id>
<content type='text'>
Filter the project list based on regex or wildcard matching
of strings, then we can handle subset of all projects.

Change-Id: Ib6c23aec79e7d981f7b6a5eb0ae93c44effec467
Signed-off-by: Zhiguang Li &lt;muzili@gmail.com&gt;
</content>
</entry>
<entry>
<title>Some fixes for supporting python3</title>
<updated>2013-04-18T16:05:49+00:00</updated>
<author>
<name>Chirayu Desai</name>
<email>cdesai@cyanogenmod.org</email>
</author>
<published>2013-03-01T13:44:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=217ea7d2747e3098009afe0b389fc4b45f55ea5a'/>
<id>urn:sha1:217ea7d2747e3098009afe0b389fc4b45f55ea5a</id>
<content type='text'>
* Fix imports.
* Use python3 syntax.
* Wrap map() calls with list().
* Use list() only wherever needed.
  (Thanks Conley!)
* Fix dictionary iteration methods
  (s/iteritems/items/).
* Make use of sorted() in appropriate places
* Use iterators directly in the loop.
* Don't use .keys() wherever it isn't needed.
* Use sys.maxsize instead of sys.maxint

TODO:
* Make repo work fully with python3. :)

Some of this was done by the '2to3' tool [1], by
applying the needed fixes in a way that doesn't
break compatibility with python2.

Links:
[1]: http://docs.python.org/2/library/2to3.html

Change-Id: Ibdf3bf9a530d716db905733cb9bfef83a48820f7
Signed-off-by: Chirayu Desai &lt;cdesai@cyanogenmod.org&gt;
</content>
</entry>
<entry>
<title>Special handling for manifest group "default"</title>
<updated>2013-04-03T22:27:45+00:00</updated>
<author>
<name>David Holmer</name>
<email>odinguru@gmail.com</email>
</author>
<published>2012-11-15T00:19:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=0a1c6a1c16e2c89f98158cb2f79dda1583a8fac4'/>
<id>urn:sha1:0a1c6a1c16e2c89f98158cb2f79dda1583a8fac4</id>
<content type='text'>
Change Details:
* Make "default" a special manifest group that matches any project that
  does not have the special project group "notdefault"
* Use "default" instead of "all,-notdefault" when user does not specify
  manifest group
* Expand -g option help to include example usage of manifest groups

Change Benefits:
* Allow a more intuitive and expressive manifest groups specification:
  * "default" instead of "all,-notdefault"
  * "default,foo" instead of "all,-notdefault,foo"
  * "default,-foo" instead of "all,-notdefault,-foo"
  * "foo,-default" which has no equivalent
* Default manifest groups behavior can be restored by the command
  'repo init -g default'. This is significantly more intuitive than the
  current equivalent command 'repo init -g all,-notdefault'.

Change-Id: I6d0673791d64a650110a917c248bcebb23b279d3
</content>
</entry>
<entry>
<title>Represent git-submodule as nested projects, take 2</title>
<updated>2012-11-19T18:45:21+00:00</updated>
<author>
<name>Che-Liang Chiou</name>
<email>clchiou@google.com</email>
</author>
<published>2012-01-11T03:28:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=b2bd91c99b9435cf950ecf8efbb8439f31d3fcbc'/>
<id>urn:sha1:b2bd91c99b9435cf950ecf8efbb8439f31d3fcbc</id>
<content type='text'>
(Previous submission of this change broke Android buildbot due to
 incorrect regular expression for parsing git-config output.  During
 investigation, we also found that Android, which pulls Chromium, has a
 workaround for Chromium's submodules; its manifest includes Chromium's
 submodules.  This new change, in addition to fixing the regex, also
 take this type of workarounds into consideration; it adds a new
 attribute that makes repo not fetch submodules unless submodules have a
 project element defined in the manifest, or this attribute is
 overridden by a parent project element or by the default element.)

We need a representation of git-submodule in repo; otherwise repo will
not sync submodules, and leave workspace in a broken state.  Of course
this will not be a problem if all projects are owned by the owner of the
manifest file, who may simply choose not to use git-submodule in all
projects.  However, this is not possible in practice because manifest
file owner is unlikely to own all upstream projects.

As git submodules are simply git repositories, it is natural to treat
them as plain repo projects that live inside a repo project.  That is,
we could use recursively declared projects to denote the is-submodule
relation of git repositories.

The behavior of repo remains the same to projects that do not have a
sub-project within.  As for parent projects, repo fetches them and their
sub-projects as normal projects, and then checks out subprojects at the
commit specified in parent's commit object.  The sub-project is fetched
at a path relative to parent project's working directory; so the path
specified in manifest file should match that of .gitmodules file.

If a submodule is not registered in repo manifest, repo will derive its
properties from itself and its parent project, which might not always be
correct.  In such cases, the subproject is called a derived subproject.

To a user, a sub-project is merely a git-submodule; so all tips of
working with a git-submodule apply here, too.  For example, you should
not run `repo sync` in a parent repository if its submodule is dirty.

Change-Id: I4b8344c1b9ccad2f58ad304573133e5d52e1faef
</content>
</entry>
<entry>
<title>Allow command options to be set from environment variables</title>
<updated>2012-11-17T03:40:42+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-11-16T00:33:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=b148ac9d9aefb18baddbf9e28ed33b1b8c6e96e6'/>
<id>urn:sha1:b148ac9d9aefb18baddbf9e28ed33b1b8c6e96e6</id>
<content type='text'>
Extend the Command base class to allow options to be set from values
in environment variables, if the user has not given the option on the
command line and the environment variable is set.

Derived classes of Command can override the implementation of the method
_GetEnvironmentOptions to configure which of its options may be set from
environment variables.

Change-Id: I7c780bcf9644d6567893d9930984c054bce7351e
</content>
</entry>
</feed>
