hg.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:49:07 +0200
changeset 2230 9e6ad6607a9e
parent 2228 837f1337c59b
permissions -rw-r--r--
Fixed formatting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1090
diff changeset
     1
.. -*- coding: utf-8; -*-
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
============
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
 Mercurial.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
============
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1855
diff changeset
     7
   :local:
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
User config.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
============
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
Put to your ~/.hgrc::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
  [ui]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
  ; Editor for editing commit message.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
  editor = gvim
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
  ; Who commit.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
  username = Oleksandr Gavenko <gavenkoa@gmail.com>
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
  ; Use internal merge algorithm, which mark conflict like <<<<<< ====== >>>>>>.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
  ; Save previous file version in '*.orig' file, after merge must be marked as
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
  ; resolved by running 'hg resolve -m <file>'.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
  merge = internal:merge
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
  [web]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
  ; Default encoding for file hosted by 'hg serv'.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
  encoding = utf-8
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
Multiline log message for log command.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
--------------------------------------
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30
By default 'hg log' show only first line of log message. To see all message
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    31
run::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    32
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    33
  $ hg log -v
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    34
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    35
or put into ~/.hgrc::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    36
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    37
  [defaults]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    38
  log = -v
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    39
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    40
Follow history ever when file copied.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    41
-------------------------------------
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    42
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    43
By default 'hg log' show only history after last file copy. To see log message
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    44
before copying run::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    45
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    46
  $ hg log -f
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    47
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    48
or put into ~/.hgrc::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    49
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    50
  [defaults]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    51
  log = -f
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    52
1659
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
    53
Show supported/loaded plugin.
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
    54
=============================
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
    55
::
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
    56
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
    57
  $ hg help extensions
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
    58
  $ hg showconfig extensions
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
    59
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    60
Useful extension.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    61
=================
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    62
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
    63
Put to your ~/.hgrc::
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    64
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    65
  [extensions]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    66
  ; To allow 'fetch' command.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    67
  hgext.fetch =
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    68
  ; To allow Mercurial Queues.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    69
  hgext.mq =
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    70
  ; To import revisions from foreign VCS repositories into Mercurial.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    71
  hgext.convert =
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    72
  ; Usage:  hg glog <dir>
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    73
  hgext.graphlog =
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    74
  ; Enable '.hgeol' tracking (fix for CR/LF).
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    75
  hgext.eol =
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    76
1647
107b566e7a12 Show diff against 2 parents or base during merge.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1646
diff changeset
    77
Show diff against 2 parents or base during merge.
107b566e7a12 Show diff against 2 parents or base during merge.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1646
diff changeset
    78
=================================================
107b566e7a12 Show diff against 2 parents or base during merge.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1646
diff changeset
    79
::
107b566e7a12 Show diff against 2 parents or base during merge.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1646
diff changeset
    80
107b566e7a12 Show diff against 2 parents or base during merge.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1646
diff changeset
    81
  hg diff -r 'p1()'
107b566e7a12 Show diff against 2 parents or base during merge.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1646
diff changeset
    82
  hg diff -r 'p2()'
107b566e7a12 Show diff against 2 parents or base during merge.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1646
diff changeset
    83
  hg diff -r 'ancestor(p1(), p2())'
107b566e7a12 Show diff against 2 parents or base during merge.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1646
diff changeset
    84
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    85
Downgrade repository format.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    86
============================
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    87
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    88
To get list of supported repo formats type::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    89
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    90
  $ hg help config
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    91
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    92
and look for "format" section. To be Mercurial 0.9.4 compatible use::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    93
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    94
  $ hg clone -U --pull \
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    95
    --config format.usefncache=0 --config format.dotencode=0 $oldr $newr
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    96
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    97
Clone specific branches.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    98
========================
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    99
::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   100
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   101
  $ hg clone http://your/repo -r $branch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   102
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   103
Closing branches.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   104
=================
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   105
::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   106
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   107
  $ hg branches
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   108
  $branch (inactive)
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   109
  ...
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   110
  $ hg branches -a
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   111
  ...                     # no $branch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   112
  $ hg up -r $branch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   113
  $ hg ci --close-branch -m "Bla-bla-bla"
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   114
  $ hg up -r default
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   115
  $ hg branches
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   116
  ...                     # no $branch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   117
  $ hg branches -c
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   118
  $branch (inactive)
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   119
  ...
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   120
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   121
To reopen closed branch just update to it and commit anything!
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   122
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   123
Remove/rename files history from repo.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   124
======================================
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   125
::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   126
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   127
  $ cat >filemap.txt <<EOF
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   128
  exclude path/to/file-or-dir
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   129
  rename path/to/source path/to/destination
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   130
  ...
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   131
  EOF
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   132
  $ hg convert --filemap filemap.txt $repo_orig $repo_new
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   133
  $ hg -R $repo_new up
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   134
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   135
See:
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   136
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   137
* http://mercurial.selenic.com/wiki/ConvertExtension
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   138
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   139
Fix branch names.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   140
-----------------
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   141
::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   142
1645
7fb7a32336a2 Fix spelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1605
diff changeset
   143
  $ hg convert --branchmap $branchmapfile oldrepo newrepo
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   144
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   145
To convert non-ASCII names use UTF-8 coding for 'branchmap' file.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   146
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   147
When converted names with spaces only last space in 'branchmap' file treat as
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   148
separator between old branch name and new, so new branch name can not contain
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   149
spaces.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   150
1645
7fb7a32336a2 Fix spelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1605
diff changeset
   151
Joining history of two repos.
7fb7a32336a2 Fix spelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1605
diff changeset
   152
=============================
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   153
::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   154
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   155
  $ cat >filemap1.txt <<EOF
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   156
  rename . dir1
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   157
  EOF
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   158
  $ cat >filemap2.txt <<EOF
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   159
  rename . dir2
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   160
  EOF
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   161
  $ hg convert --filemap filemap1.txt $repo1 $repo_new
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   162
  $ hg convert --filemap filemap2.txt $repo2 $repo_new
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   163
  $ hg -R $repo_new merge
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   164
  $ hg -R $repo_new ci -m "Join $repo1 and $repo2."
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   165
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   166
Publishing repo.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   167
================
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   168
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   169
With static HTTP hosting you can copy via rsync, ftp, scp, etc., so long as all
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   170
the files beneath .hg are copied. Also since 1.1 pull protocol can detect static
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   171
HTTP hosting::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   172
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   173
  $ hg clone http://example.com/project
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   174
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   175
See:
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   176
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   177
* http://mercurial.selenic.com/wiki/hgserve
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   178
* http://mercurial.selenic.com/wiki/HgWebDirStepByStep
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   179
* http://mercurial.selenic.com/wiki/StaticHTTP
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   180
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   181
hgweb.config.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   182
-------------
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   183
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   184
Set allowed project by specifying paths to they (keys are URL, values are fs
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   185
paths)::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   186
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   187
  [paths]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   188
  myproject = /home/user/hg/myproject
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   189
  otherproject = /home/user/hg/otherproject
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   190
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   191
You can use single wildcard '*' to search current subdirs or double wildcard
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   192
'**' to search subdirs recursively::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   193
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   194
  [paths]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   195
  myproject = /home/user/hg/my/*
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   196
  otherproject = /home/user/hg/other/**
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   197
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   198
Alternatively you can set a collection of repos (keys and values are both
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   199
filesystem paths, keys should be prefixes of the values and are "subtracted"
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   200
from the values in order to generate the URL paths to each repository)::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   201
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   202
  [collections]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   203
  /home/user/hg = /home/user/hg
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   204
  /home/another/hg = /home/another/hg
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   205
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   206
Allow archive downloads::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   207
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   208
  [web]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   209
  allow_archive = gz, zip, bz2
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   210
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   211
Make web page look nice::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   212
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   213
  [web]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   214
  # Use 'cd /lib/python2.x/site-packages/mercurial/templates; find . -type d' to see available
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   215
  # styles. Some interesting: gitweb, coal, monoblue.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   216
  style = gitweb
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   217
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   218
Set another settings::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   219
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   220
  [web]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   221
  encoding = UTF-8
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   222
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   223
  maxchanges = 100
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   224
  maxfiles = 100
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   225
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   226
In each $proj/.hg/hgrc put::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   227
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   228
  [web]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   229
  contact = ADMIN <admin@example.com>
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   230
  description = <p style="color: red;">$proj</b> allow make a <a href="http://example.com">BIG Thing.</a>
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   231
  # Do not use name, in this case you see dir name where project lcated.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   232
  # name = $proj
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   233
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   234
To allow push in 'hg serv'::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   235
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   236
  [web]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   237
  allow_push = *
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   238
  push_ssl = false
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   239
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   240
See:
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   241
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   242
http://mercurial.selenic.com/wiki/PublishingRepositories
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   243
  Publishing Mercurial Repositories
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   244
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   245
init.d script.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   246
--------------
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   247
::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   248
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   249
  #!/bin/sh
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   250
  CMD=/usr/bin/hg
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   251
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   252
  PORT=7878
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   253
  SRC=/srv/hg
1645
7fb7a32336a2 Fix spelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1605
diff changeset
   254
  CONFIG=/srv/hg/hgweb.config
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   255
  PIDFILE=/var/run/hg.pid
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   256
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   257
  case "$1" in
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   258
  start)
1645
7fb7a32336a2 Fix spelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1605
diff changeset
   259
    echo "Mercurial Server service starting."
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   260
    (cd "$SRC"; $CMD serve -d -p $PORT --pid-file "$PIDFILE")
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   261
    ;;
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   262
  stop)
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   263
    if [ -f "$PIDFILE" ]; then
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   264
      PID=`cat "$PIDFILE"`
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   265
      if [ "$PID" -gt 1 ]; then
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   266
        kill -TERM $PID
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   267
        echo "Stopping the Mercurial service PID=$PID."
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   268
      else
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   269
        echo Bad PID for Mercurial -- \"$PID\".
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   270
        echo You may remove \"$PIDFILE\" manually.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   271
      fi
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   272
    else
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   273
      echo No PID file recorded for mercurial.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   274
    fi
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   275
    ;;
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   276
  *)
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   277
    echo "$0 {start|stop}"
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   278
    exit 1
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   279
    ;;
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   280
  esac
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   281
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   282
See:
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   283
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   284
* http://mercurial.selenic.com/wiki/hgserve
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   285
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   286
Manage patches with MQ.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   287
=======================
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   288
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   289
First enable MQ, add following to your ~/.hgrc::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   290
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   291
  [extensions]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   292
  hgext.mq =
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   293
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   294
Second get unpatched sources and put it to hg repository::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   295
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   296
  $ tar zxf proj-x.y.z.tar.gz
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   297
  $ mv proj-x.y.z proj
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   298
  $ cd proj
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   299
  $ hg init
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   300
  $ hg ci -m "Added x.y.z version of proj."
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   301
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   302
Init MQ and take name for first patch::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   303
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   304
  $ hg qinit
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   305
  $ hg qnew first.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   306
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   307
Next make changes by editing source and save it to patch::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   308
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   309
  $ $EDITOR file.c
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   310
  ...
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   311
  $ hg diff
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   312
  ...
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   313
  $ hg qrefresh
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   314
  $ hg diff      # <-- have zero diff
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   315
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   316
You can make second patch by applying existing one::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   317
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   318
  $ hg qnew second.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   319
  $ patch -p1 <bugfix.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   320
  $ hg qrefresh
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   321
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   322
You can take list of patches (from old to new) and revert or apply patches by
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   323
qpop/qpush command::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   324
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   325
  $ hg qseries   # <-- what patches have
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   326
  first.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   327
  second.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   328
  $ hg qapplied  # <-- what patches applied
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   329
  first.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   330
  second.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   331
  $ hg qpop
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   332
  $ hg qseries
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   333
  first.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   334
  second.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   335
  $ hg qapplied
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   336
  first.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   337
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   338
You can revert or apply all patches by single command::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   339
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   340
  $ hg qpop -a
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   341
  $ hg qpush -a
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   342
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   343
You can delete patch from patch list (before that you need de-apply patch)::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   344
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   345
  $ hg qpop -a
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   346
  $ hg qdelete first.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   347
1645
7fb7a32336a2 Fix spelling.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1605
diff changeset
   348
To add new version of source and fix patches for it first de-apply patches,
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   349
then pull new changes and try apply patches on top of new sources::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   350
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   351
  $ hg qpop -a
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   352
  $ rm *       # .hg dir not deleted because its name start with dot
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   353
  $ cd ..
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   354
  $ tar zxf proj-a.b.c.tar.gz
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   355
  $ cp -R proj-a.b.c/* proj
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   356
  $ cd proj
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   357
  $ hg addremove -s 70
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   358
  $ hg ci -m "Added a.b.c version of proj."
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   359
  $ hg qpush -a
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   360
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   361
To apply series of already done patches use::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   362
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   363
  $ ls /path/to/bugfixes/*.patch | xargs hg qimport
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   364
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   365
You can fix patch description message from command line::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   366
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   367
  $ hg qser -s
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   368
  makefile-doc.patch:
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   369
  $ hg qpush
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   370
  applying makefile-doc.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   371
  now at: makefile-doc.patch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   372
  $ hg qref -m 'Add description about Makefile usage.'
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   373
  $ hg qser -s
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   374
  makefile-doc.patch: Add description about Makefile usage.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   375
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   376
or from editor by::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   377
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   378
  $ hg qref -e
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   379
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   380
Remove all patches from MQ.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   381
===========================
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   382
::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   383
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   384
  $ hg qpop -a
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   385
  $ for patch in `hg qser`; do hg qrm $patch; done
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   386
1668
86a2cb376ee9 Moving changes from MQ to working tree.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1667
diff changeset
   387
Moving changes from MQ to working tree.
86a2cb376ee9 Moving changes from MQ to working tree.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1667
diff changeset
   388
=======================================
86a2cb376ee9 Moving changes from MQ to working tree.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1667
diff changeset
   389
::
86a2cb376ee9 Moving changes from MQ to working tree.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1667
diff changeset
   390
86a2cb376ee9 Moving changes from MQ to working tree.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1667
diff changeset
   391
  $ hg qpop my.patch
86a2cb376ee9 Moving changes from MQ to working tree.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1667
diff changeset
   392
  $ hg qdel --keep my.patch
86a2cb376ee9 Moving changes from MQ to working tree.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1667
diff changeset
   393
  $ patch -p1 .hg/patches/my.patch
86a2cb376ee9 Moving changes from MQ to working tree.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1667
diff changeset
   394
  $ rm .hg/patches/my.patch
86a2cb376ee9 Moving changes from MQ to working tree.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1667
diff changeset
   395
1667
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   396
Split patch in MQ.
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   397
==================
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   398
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   399
Enable built-in extensions::
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   400
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   401
  [extensions]
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   402
  mq=
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   403
  record=
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   404
  shelve=
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   405
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   406
Then move MQ into working tree and split changes and remove original patch::
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   407
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   408
  $ hg qpop my.patch
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   409
  $ patch -p1 <.hg/patches/my.patch
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   410
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   411
  $ hg qnew -i my1.patch
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   412
   ....
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   413
  $ hg qnew -i my2.patch
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   414
   ....
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   415
  $ hg qnew myN.patch   # last without interactive stuff
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   416
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   417
  $ hg qdelete --keep my.patch
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   418
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   419
Between ``my$i.patch`` and ``my$((i+1)).patch`` you can use ``hg shelve``/``hg
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   420
unshelve`` to test if project built and pass tests on top of ``my$i.patch``
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   421
without later changes!
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   422
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   423
If you find that something missing on this stage use ``hg qref`` on shelved
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   424
changes or ``hg qref -i`` on unshelved changes!
40bb400c925e Split patch in MQ.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1660
diff changeset
   425
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   426
Proxy.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   427
======
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   428
::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   429
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   430
  $ hg clone --config http_proxy.host=$host:$port \
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   431
    --config http_proxy.user=$user --config http_proxy.passwd=$password  $addr
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   432
1605
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   433
Shelve/stash uncommitted changes.
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   434
=================================
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   435
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   436
Enable ``shelve`` extension::
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   437
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   438
  [extensions]
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   439
  shelve=
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   440
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   441
and::
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   442
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   443
  $ hg shelve
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   444
  $ hg fetch
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   445
  $ hg unshelve
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   446
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   447
Or use MQ::
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   448
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   449
  $ hg qnew tmp.patch
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   450
  $ hg qpop
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   451
  $ hg fetch
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   452
  $ hg qpush
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   453
41ef0417d899 Shelve/stash uncommitted changes. shelve extension.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
   454
Or with plain patch::
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   455
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   456
  $ hg diff > .diff   # save local changes
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   457
  $ hg revert -a
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   458
  $ hg fetch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   459
  $ patch -p1 <.diff
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   460
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   461
See:
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   462
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   463
* http://mercurial.selenic.com/wiki/TipsAndTricks#Merge_or_rebase_with_uncommitted_changes
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   464
* http://mercurial.selenic.com/wiki/ShelveExtension
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   465
1659
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   466
Rebase.
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   467
=======
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   468
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   469
SVN like update::
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   470
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   471
  $ hg pull --rebase
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   472
1688
5493b5425eba limit merge only to current branch
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1668
diff changeset
   473
Rebase draft (unpublished) changes over public changes if one one head::
1659
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   474
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   475
  $ hg rebase -s 'draft()' -d 'public()'
1660
71e627dc8b8c it possible that you isn't on a tip
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1659
diff changeset
   476
  $ hg up  # it possible that you isn't on a tip
1659
7dc153b728f7 Rebase draft (unpublished) changes over public changes.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1647
diff changeset
   477
1688
5493b5425eba limit merge only to current branch
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1668
diff changeset
   478
If you want to limit merge only to current branch::
5493b5425eba limit merge only to current branch
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1668
diff changeset
   479
5493b5425eba limit merge only to current branch
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1668
diff changeset
   480
  $ hg rebase -s 'draft() & branch(.)' -d 'public() & branch(.)'
5493b5425eba limit merge only to current branch
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1668
diff changeset
   481
2080
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   482
Delete untracked files
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   483
======================
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   484
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   485
With ``purge`` extention enabled::
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   486
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   487
  $ hg purge
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   488
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   489
To ignore ``.hgignore``::
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   490
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   491
  $ hg purge --all
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   492
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   493
Without ``purge`` extention::
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   494
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   495
  $ hg st -un0 | xargs -0 rm
bb2f6fcce8d4 Delete untracked files.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
   496
2103
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   497
Dealing with CR/LF
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   498
==================
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   499
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   500
Enable ``eol`` extension::
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   501
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   502
  [extensions]
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   503
  eol =
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   504
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   505
Configure defaults::
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   506
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   507
  [eol]
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   508
  native = CRLF
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   509
  only-consistent = False
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   510
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   511
Per project configuration set via  ``.hgeol``::
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   512
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   513
  [patterns]
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   514
  **.py = native
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   515
  **.txt = native
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   516
  **.vcproj = CRLF
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   517
  Makefile = LF
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   518
  **.jpg = BIN
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   519
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   520
https://www.mercurial-scm.org/wiki/EolExtension
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   521
  Official wiki about CR/LF.
a21980c282c8 Dealing with CR/LF.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2080
diff changeset
   522
1024
dd94730a04f4 Fix section name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1023
diff changeset
   523
Find greatest common ancestor of changesets.
dd94730a04f4 Fix section name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1023
diff changeset
   524
============================================
1090
d362fd4a1995 Fix RST syntax.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1088
diff changeset
   525
::
1023
d8c88154a28f Find greatest common ancestor of the two changesets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1001
diff changeset
   526
d8c88154a28f Find greatest common ancestor of the two changesets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1001
diff changeset
   527
  $ hg help revsets
d8c88154a28f Find greatest common ancestor of the two changesets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1001
diff changeset
   528
  $ hg log -r "ancestor($rev1,$rev2)"
d8c88154a28f Find greatest common ancestor of the two changesets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1001
diff changeset
   529
  $ hg log -r "ancestor($rev1,ancestor($rev2,$rev3))"
d8c88154a28f Find greatest common ancestor of the two changesets.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1001
diff changeset
   530
1088
90fc62d6693e Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1032
diff changeset
   531
Find most recent tag for revision.
90fc62d6693e Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1032
diff changeset
   532
==================================
90fc62d6693e Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1032
diff changeset
   533
::
90fc62d6693e Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1032
diff changeset
   534
90fc62d6693e Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1032
diff changeset
   535
  $ hg log -r "sort(tag() and ancestors($REV),-date)"
90fc62d6693e Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1032
diff changeset
   536
  $ hg log -r $REV --template "{latesttag}-{latesttagdistance}-{node|short}\n"
90fc62d6693e Find most recent tag for revision.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1032
diff changeset
   537
1855
3880fb7d6d2a Author statistic.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1688
diff changeset
   538
Author statistic.
3880fb7d6d2a Author statistic.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1688
diff changeset
   539
=================
3880fb7d6d2a Author statistic.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1688
diff changeset
   540
3880fb7d6d2a Author statistic.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1688
diff changeset
   541
Ecanle extention ``churn`` and run::
3880fb7d6d2a Author statistic.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1688
diff changeset
   542
3880fb7d6d2a Author statistic.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1688
diff changeset
   543
  $ hg churn
3880fb7d6d2a Author statistic.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1688
diff changeset
   544
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   545
Hooks.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   546
======
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   547
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   548
Check for bad branch names.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   549
---------------------------
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   550
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   551
.hg/hgcheck.py::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   552
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   553
  import re
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   554
  goodbranch_re = r'((bug|feature)#\d|release-1\.\d\.\d|default)$'
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   555
  def precommit_badbranchname(ui, repo, hooktype, **kwargs):
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   556
      ui.warn('"%s" hook failed\n' % hooktype)
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   557
      for rev in repo:
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   558
          branch = repo[rev].branch()
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   559
          re_ = re.compile(goodbranch_re)
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   560
          if not re_.match(branch):
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   561
              ui.warn('Invalid branch name "%s".\nUse one of default, bug#ID, feature#ID or release-1.XX.XX.\n' % branch)
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   562
              return True
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   563
      return False
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   564
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   565
.hg/hgrc::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   566
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   567
  [hooks]
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   568
  precommit.badbranchname = python:.hg/hgcheck.py:precommit_badbranchname
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   569
  # precommit.gg = python:my.hgcheck.py.precommit_badbranch
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   570
  prechangegroup.badbranchname = python:.hg/hgcheck.py:precommit_badbranchname
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   571
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   572
Read more:
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   573
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   574
* http://mercurial.selenic.com/wiki/HookExamples
1001
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   575
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   576
Ignore patterns.
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   577
----------------
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   578
::
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   579
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   580
  $ cat $proj/.hgignore
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   581
  syntax: glob
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   582
  *.o
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   583
  .obj
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   584
  *.exe
4dd76ea12a6d Downgrade repository format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
   585
1646
fdd6045a5563 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1645
diff changeset
   586
Free Mercurial hosting.
fdd6045a5563 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1645
diff changeset
   587
=======================
fdd6045a5563 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1645
diff changeset
   588
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   589
http://mercurial.selenic.com/wiki/MercurialHosting
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 2103
diff changeset
   590
  Free Hosting of Mercurial repositories.
1646
fdd6045a5563 Reorder sections.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1645
diff changeset
   591