~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/partial-commit.txt

  • Committer: Robert Collins
  • Date: 2005-10-29 23:48:45 UTC
  • Revision ID: robertc@robertcollins.net-20051029234845-7ae4e7d118bdd3ed
Implement a 'bzr push' command, with saved locations; update diff to return 1.

    * 'bzr diff' now returns 1 when there are changes in the working 
      tree.

    * 'bzr push' now exists and can push changes to a remote location. 
      This uses the transport infrastructure, and can store the remote
      location in the ~/.bazaar/branches.conf configuration file.

    * WorkingTree.pull has been split across Branch and WorkingTree,
      to allow Branch only pulls.

    * commands.display_command now returns the result of the decorated 
      function.

    * LocationConfig now has a set_user_option(key, value) call to save
      a setting in its matching location section (a new one is created
      if needed).

    * Branch has two new methods, get_push_location and set_push_location
      to respectively, get and set the push location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Partial commit
 
2
**************
 
3
 
 
4
In the first cut, commit covers the whole tree.
 
5
 
 
6
Secondly, people might want to commit only particular files or
 
7
subdirectories.  Semantics of this in the case of renames/adds/deletes
 
8
may be a bit complex, but I think it can be done.  The basic point is
 
9
to build an inventory which includes only the specified changes from
 
10
the working copy. 
 
11
 
 
12
Beyond that, it can be very nice in darcs to commit only selected
 
13
changes to a file.  I think this should not be the default though;
 
14
perhaps only do it with ``-i``.  Even better (for some users) kick off
 
15
a graphical tool to select the particular regions.  Beyond a certain
 
16
point it may become easier for the user to explicitly set aside some
 
17
changes and commit others first.
 
18
 
 
19
In any case, it is a good idea to run a test suite on the revision to
 
20
be committed, to make sure there were no missed dependencies.
 
 
b'\\ No newline at end of file'