Commit Graph

302 Commits

Author SHA1 Message Date
Mathieu Clabaut ext:(%22)
7d1dd836ba Vim script: Adaptation from CVS to Mercurial 2006-07-10 23:45:16 +02:00
Mathieu Clabaut ext:(%22)
2958e5cbf3 Addition of CVScommand vim script as a base for HGcommand 2006-07-10 23:39:08 +02:00
Sébastien Pierre
27d193fe81 darcs2hg: pause and resume support, date extraction from commit hash, does not break on empty commits 2006-07-10 12:19:37 -04:00
Nils Decker
7b2bc09d74 darcs2hg.py: use darcs patch hash as patch identifier
The use of the patch name is dangerous when duplicate names exist.
In case of a duplicate name the second patch and all its dependancies
are merged into a single mercurial patch.
The patch identifier (hash) is always unique.
2006-07-09 21:41:00 -07:00
Lee Cantey
169c49677d Redirect MacPython link to point to python.org 2006-07-06 09:26:31 -07:00
Raphael Marmier
4d2b4ac19a Disable automatic line endings conversion on windows
The rationale behind this is that such conversion implies a particular
situation in which all files in the repo are terminated by only LF. This
is documented nowhere and it bit me sharply when I upgraded.

Furthermore, it works on the assumption that a file containing no NULL
characters are actually a text file. Therefore it cannot guarantee that
no binary file will be harmed in the process.

Currently, if a file already contains CRLF line endings when it is
copied to the working dir from the repo, then the version in the working
dir will be corrupted by an extra CR.

I'm working on a patch that will turn this into a warning. But as a side
effect, committing such a file back will strip it from its CR.

In all case, unrequested data modification can occur under the feet of
the user, which is bad(tm), ihmo.
2006-07-03 10:18:46 -07:00
Vadim Gelfer
82a6d82061 mercurial.el: fix misleading indent of code.
code was correct, indent was wrong.
2006-06-29 10:35:15 -07:00
Vadim Gelfer
ad8c158ca2 mercurial.el: inhibit backups for files managed by mercurial 2006-06-29 10:27:09 -07:00
Lee Cantey
14693b5695 Update Mac OSX installer to 0.9 with Universal Python build 2006-06-27 11:32:37 -07:00
Vadim Gelfer
77cf84bc90 merge emacs changes. 2006-06-18 21:15:01 -07:00
Vadim Gelfer
6d81af657d merge with crew. 2006-06-18 21:04:42 -07:00
FUJIWARA Katsunori
42626859e7 Emacs: follow the revision usage policy of "hg diff" command.
This patche makes "parent" as default revision of diff command.
2006-06-18 04:13:33 +09:00
FUJIWARA Katsunori
645be5112b Emacs: change directory of output buffer to the root of the repository. 2006-06-18 04:02:56 +09:00
FUJIWARA Katsunori
a0c3415d1d Emacs: use default-directory' if buffer-file-name' is null.
This patch allows you to co-operate with Mercurial in dired buffer.
2006-06-18 03:46:00 +09:00
FUJIWARA Katsunori
778100dd4b Emacs: use delete-region instead of kill-* functions.
This patch eliminates `kill-line' which taints kill-ring,
and `kill-entire-line' which is specific for XEmacs.
2006-06-17 00:06:28 +09:00
Vadim Gelfer
844d833844 move hgk.py into hgext. now to enable "hg view" is one less step.
edit ~/.hgrc:

[extensions]
hgext.hgk =

cp contrib/hgk ~/bin
2006-06-14 15:41:06 -07:00
Vadim Gelfer
bd8276a666 move purge extension out of hgext.
it is not as clean as other modules in hgext.
can move back after rewrite.
2006-06-04 17:08:02 -07:00
Vadim Gelfer
0dd4907595 merge with crew. 2006-06-01 13:47:34 -07:00
TK Soh
cf3a279096 various fixes to darcs conversion script
1. removed files were missed
2. hidden files in top directory were not added/removed correctly
3. suppressed spurious warning on adding new files.
4. hg changeset now checked in with original author and date
5. __file__ not supported by pdb.py
2006-05-29 16:46:31 +08:00
Vadim Gelfer
edc115c48d contrib: move hg-menu.vim into contrib/vim directory 2006-05-27 20:45:22 -07:00
Manpreet Singh
acca4070a9 contrib: patch review plugin for vim 7.0
The plugin takes an 'hg export'ed patch (in fact any
single or multi file patch) and opens multiple tabs
containing vim diff/merge windows for each affected
file in the patch allowing full visual code reviews.
2006-05-27 20:44:53 -07:00
Sébastien Pierre
57e471e17a darcs2hg.py: import darcs project into mercurial
For now, the tags are not taken into account (so you have to reenter
the tags by hand)
2006-05-27 15:04:40 -07:00
Vadim Gelfer
44fdf5e0a9 contrib: add restricted shell. 2006-05-23 09:33:09 -07:00
Marco Barisione
7b55b5bf7d Automatically add the path of hg to %PATH% using add_path 2006-05-22 14:12:41 +02:00
Lee Cantey
a743462e0d Update configuration note with mercurial.ini change from Thomas 2006-05-18 11:48:03 -07:00
Vadim Gelfer
059e0b08c7 merge emacs patches. 2006-05-18 22:46:27 -07:00
FUJIWARA Katsunori
db4f956aa0 Emacs: separate limitations of revision range and shown changesets.
For revision range limitation,
use "-r" opt with range notation at "hg log" invocation, and
use hg-rev-completion-limit as default value.
For shown changesets limitation,
use "-l" opt at "hg log" invocation, and
use hg-log-limit as default value.
2006-05-18 22:44:36 -07:00
FUJIWARA Katsunori
b1ae07c169 Emacs: adapt read-file-name invocation for (non-X)Emacs 21.4.
this patch deters hg-read-file-name from passing hg-file-history to
read-file-name as 6th parameter in non-X Emacs environment.
2006-05-18 22:43:09 -07:00
Lee Cantey
3070d57782 Add section for configuration notes with initial note about the default editor 2006-05-18 10:09:16 -07:00
Thomas Arendsen Hein
82dbbf6d45 Fix hg view if author's name contains unmatched quotes. (issue248)
This was caused by the often seen Tcl list vs. string programming error.
2006-05-17 14:46:12 +02:00
Lee Cantey
b2b411d7f9 Update Windows release notes and install script for v0.9 2006-05-12 21:25:58 -07:00
Lee Cantey
019412ec07 Update release notes and copyright year for Windows installer. 2006-05-05 22:13:56 -07:00
Vadim Gelfer
c1238a617f convert-repo: fix reversed time zone offset 2006-04-19 11:29:41 -07:00
Lee Cantey
bfac2dd926 update windows readme to document msys/mingw rxvt problems. 2006-04-19 10:56:44 -07:00
Thomas Arendsen Hein
61dd59387f Use the new format of setting tags in view extension (Debian bug #361897) 2006-04-11 12:44:13 +02:00
Alexis S. L. Carvalho
c5f6f508f5 bash_completion: completion for commands provided by extensions
Make the bash_completion function call _hg_cmd_$cmd to generate
completion candidates for $cmd if that function exists.

Add basic completion functions for:

- mq:
  - qpop
  - qpush
  - qdelete
  - qsave
  - qcommit
  - strip

- hbisect:
  - bisect

- patchbomb:
  - email

- gpg:
  - sign
2006-04-03 14:56:00 +02:00
Alexis S. L. Carvalho
bb83bf89db bash_completion: small optimization
Right now we always call "hg help $cmd" to get the canonical name of $cmd
(i.e. to go from "co" to "update").

This patch optimistically assumes that $cmd is already the canonical form
and tries to generate completions for it.  If that fails, it falls back
to canonicalizing $cmd and trying again.

This means that:

- if a command or alias is explicitly handled by the
  _hg_command_specific function, things get somewhat faster

- as long as the canonical $cmd is handled by _hg_command_specific, all
  its aliases and abbreviations are also handled.
2006-04-02 18:20:52 +02:00
Thomas Arendsen Hein
7bd3e367e7 Make 'hg tags -q' only list tag names without revision numbers and hashes,
and change bash_completion to use this.
2006-04-01 23:57:24 +02:00
Alexis S. L. Carvalho
b5be2f0b92 add --options to debugcomplete and change bash_completion to use it
make debugcomplete print one item per line (this is not needed for the
bash_completion script, but should be easier to use in other scripts)
2006-04-01 22:50:12 +02:00
Hollis Blanchard
483cd8bfdc hgk "committer:" bug
I've been having an hgk problem with this tree:
http://xenbits.xensource.com/ext/linux-ppc-2.6.hg, specifically changeset
93c590d23a53.

The problem seems to be that the commit message contains a "committer:" line,
which triggers a (relatively unused?) case in hgk.py... Both cases need the
dates at the end of the line.
2006-03-15 03:19:16 +01:00
Thomas Arendsen Hein
63d0e7a57c New version/release in mercurial.spec, patchbomb is now in hgext. 2006-03-12 15:11:11 +01:00
Xiaofeng Ling
3ce0ba8182 fix contrib/mercurial.spec for hgext 2006-03-12 15:07:40 +01:00
Thomas Arendsen Hein
0a049bc1ef Make bash_completion more robust for e.g. broken hgrc or old hg installations. 2006-03-12 12:29:03 +01:00
Benoit Boissinot
8c2989d646 new command debugcomplete
add a new command debugcomplete, it lists all the possible
completion for the specified command.
make the bash_completion script uses it instead of the awk code
2006-03-12 11:32:03 +01:00
Thomas Arendsen Hein
c8d9d88df5 Moved bisect extension to hgext folder. 2006-03-08 19:30:30 +01:00
Thomas Arendsen Hein
0437032c16 Added copyright information to hbisect.py 2006-03-08 19:25:03 +01:00
Thomas Arendsen Hein
8bb6736d79 Make bisect extension work with python2.3 2006-03-08 05:31:20 +01:00
Thomas Arendsen Hein
a881a92ada Fixed spacing/indentation, removed #! script header, added short description. 2006-03-08 05:16:36 +01:00
Thomas Arendsen Hein
793e55438b Fixed contrib/hbisect.py to work with the new opener behaviour. 2006-03-08 05:07:20 +01:00
Lee Cantey
30c4e31573 Remove patchbomb from list of contrib files to install since it's now an extension.
Innosetup script was referencing old contrib location.
Also cosmetic change to group related files.
2006-03-06 21:03:46 -08:00
Alexis S. L. Carvalho
9a000b91a7 Really fix bash_completion on Solaris. Maybe. Hopefully.
Use substr instead of sub.
2006-03-01 14:52:28 +01:00
Alexis S. L. Carvalho
6ba2866bba Fix bash_completion on Solaris
TK Soh noticed that the awk that ships with Solaris doesn't allow you
to define new functions.  According to
http://www.shelldorado.com/articles/awkcompat.html
it looks like it also doesn't have some other stuff that we were using,
like deletion of an array element and gsub.

Rewrite the parsing of hg --debug help to work around that. This
version doesn't filter aliases that are simple abbreviations for debug
commands (not a big problem, since there are none right now).
2006-02-28 11:49:35 -06:00
Benoit Boissinot
f98eafd479 bisect: fix for recent changes disallowing "false" merges 2006-02-19 18:59:20 +01:00
Matt Mackall
3c42236268 Revert convert-repo changes 2006-02-13 12:48:28 -06:00
lcantey@gmail.com
207fed5cdc Update version strings and add release notes to Windows specific files 2006-02-03 11:29:39 +01:00
Vadim Gelfer
74c20c0bae merge with crew. 2006-02-03 00:52:31 -08:00
Vadim Gelfer
65a53c316b make stuff for macos x binary package.
it is now easy to make prebuilt binary for macos x.  i have no hosting
space.  i hope someone else can make binaries.
2006-02-03 00:50:28 -08:00
Thomas Arendsen Hein
df5b521a79 Cleanup of spacing in bash_completion 2006-02-02 08:16:17 +01:00
Thomas Arendsen Hein
d64ca73426 Use user specified path to hg in bash_completion
e.g. for multiple installs with different versions or extensions.
2006-02-02 07:50:20 +01:00
Vadim Gelfer
5ddda972ae turn patchbomb script into an extension module.
command name is now 'hg email'.
2006-01-31 08:06:35 -08:00
Matt Mackall
08e52a57b8 convert-repo: use commit rather than rawcommit 2006-01-29 18:38:56 +13:00
Matt Mackall
f7a7ecf39e convert-repo: automatically create empty map file 2006-01-29 17:22:03 +13:00
mason@suse.com
1ddefaa316 Remove duplicate bunidiff code from hgdiff, importing from mdiff.py instead 2006-01-28 17:16:15 +13:00
Alexis S. L. Carvalho
12832e1570 bash_completion: ignore hg help error messages
They are usually not useful when you're completing stuff and end up
cluttering the screen.
2006-01-27 12:15:39 +01:00
Alexis S. L. Carvalho
01b4cbf805 bash_completion: always use single quotes with compgen -W
This avoids a bug in bash 2.05a
2006-01-27 12:11:14 +01:00
Alexis S. L. Carvalho
af689bde09 bash_completion: be more careful about whitespaces
- use awk to parse the output of hg help.
- print one completion candidate per line
- print the debug commands after regular commands
  (this eases the shell side of the parsing)
- don't print aliases that are simple abbreviations
  (e.g. up/update, id/identify)
2006-01-27 12:10:35 +01:00
Thomas Arendsen Hein
6ca7b37617 Added hint to hg-ssh that you can use shell pattern matching. 2006-01-26 16:37:31 +01:00
Thomas Arendsen Hein
2ac2a1e7e3 _hg_status improvements in bash_completion:
- Use "hg status -n" option instead of cut command.
- Sort status flags accoring to "hg status --help"
- Show deleted files instead of "hg remove"d for "hg remove"
2006-01-26 15:07:46 +01:00
Alexis S. L. Carvalho
606e1d0e53 bash_completion: small updates and fixes
- $result in _hg_commands is not an array
- use "hg status ."
- update "hg cat" completion
- let bash itself generate the default completion
2006-01-26 14:52:26 +01:00
Matt Mackall
8ad9960f06 contrib: add Chris Mason's stand-alone diff tool
This uses Mercurial's diff algorithm to generate unidiffs like the traditional diff tool.
2006-01-24 14:49:19 +13:00
Benoit Boissinot
4999ac2c31 make the order of the arguments for filterfiles consistent
fix a bug where the order was reversed
2006-01-18 16:55:05 +01:00
Thomas Arendsen Hein
c057b50e85 Distinguish removed and deleted files. Tests are not fixed yet.
hg status will now show "R filename" for "hg rm"ed files and
"! filename" for files which were deleted manually.
Manually deleted files are considered unmodified.
2006-01-12 13:58:36 +01:00
Thomas Arendsen Hein
f5ef5dad07 Renamed c, a, d, u to modified, added, removed, unknown for users of changes() 2006-01-12 13:35:09 +01:00
Vincent Danjean
0df40f4f57 hgk.py is not a script (no '#!' line needed) 2006-01-12 06:29:06 +01:00
Vadim Gelfer
a37f3bbd39 add --plain option to patchbomb.
this omits the hg patch headers.  it makes a patchbomb email look like
a regular email with a patch.
2005-12-28 07:13:52 -08:00
Vadim Gelfer
c61d342be1 make patchbomb work with recent changes to export 2005-12-28 07:11:46 -08:00
Daniel Kobras
a3a420907c Less annoying directory completion (see http://bugs.debian.org/343458)
The current bash completion script is quite painful in conjuntion with
deep directory trees because it adds a space after each successful
directory completion. Eg. "hg clone /ho<tab>" is completed to "hg clone
/home " when what you really want is "hg clone /home/" (assuming the
complete path to the repository looks like /home/foo/hg...).

That's because the 'complete' command does not know about the type of
completion it receives from the _hg shell function. When only a single
completion is returned, it assumes completion is complete and tells
readline to add a trailing space. This behaviour is usually wanted, but
not in the case of directory completion.

I've attached a patch that circumvents this problem by only returning
successful completions for directories that contain a .hg subdirectory.
If no repositories are found, no completions are returned either, and
bash falls back to ordinary (filename) completion. I find this behaviour
a lot less annoying than the current one.

Alternative: Use option nospace for the 'complete' command and let _hg
itself take care of adding a trailing space where appropriate. That's a
far more intrusive change, though.
2005-12-15 15:40:14 +01:00
Thomas Arendsen Hein
6e1ff4c419 Merge with http://hg.omnifarious.org/~hopper/mercurial 2005-11-29 18:06:23 +01:00
Thomas Arendsen Hein
f2525190a2 Space/Tab cleanup in bash_completion. 2005-11-23 08:07:27 +01:00
Alexis S. L. Carvalho
5bb8e5ebbc bash_completion: use hg --debug help to get the list of debug commands.
Also, try completing with the debug commands only when there's no other
candidates.

Based on an idea by TK Soh.
2005-11-23 08:02:35 +01:00
Eric Hopper
dd6718fc31 Convert all classes to new-style classes by deriving them from object. 2005-11-18 22:48:47 -08:00
Michael Gebetsroither
ed299a1d15 added st as alias for status in zsh_completition 2005-11-14 15:10:10 +01:00
Thomas Arendsen Hein
cbb024cd1e Added hg-ssh - a wrapper for ssh access to a limited set of mercurial repos
To be used in ~/.ssh/authorized_keys with the "command" option, see sshd(8):
command="hg-ssh path/to/repo1 /path/to/repo2 ~/repo3 ~user/repo4" ssh-dss ...
(probably together with these other useful options:
 no-port-forwarding,no-X11-forwarding,no-agent-forwarding)

This allows pull/push over ssh to to the repositories given as arguments.

If all your repositories are subdirectories of a common directory, you can
allow shorter paths with:
command="cd path/to/my/repositories && hg-ssh repo1 subdir/repo2"
2005-11-13 02:06:02 +01:00
Steve Borho
6054384fdd zsh: allow 'hg clone' to complete paths listed in ~/.hgrc 2005-11-02 15:45:41 -08:00
Steve Borho
e0c1367c2e zsh completion improvements.
File completers now correctly deal with filenames that contain spaces.
The completers also use 'hg status .' so they'll work correctly when the
default behaviour changes.
2005-10-31 09:58:05 -08:00
Steve Borho
fd7a8ead5d zsh completion: Added '--newest-first' to incoming, outgoing 2005-10-24 19:55:44 -07:00
Steve Borho
8cdd4c7b5c zsh completions: new -M, -m arguments for log, etc. 2005-10-24 16:54:07 -07:00
TK Soh
badf259cef hgk: add horizontal scrollbar to patch window 2005-10-24 14:54:54 -07:00
Eric Bloodworth
4fdfb5c5a8 Add control-w key binding to quit hgk. 2005-10-24 14:54:48 -07:00
Steve Borho
071b8206bf New vim script; provides key mappings and menus for GVIM 2005-10-19 00:05:08 -07:00
Matt Mackall
6cfc6d18b1 convert-repo: fix up octopus merge conversion 2005-10-05 19:27:35 -07:00
Matt Mackall
fcbb29caf2 convert-repo: change duplicate elimination 2005-10-05 19:26:41 -07:00
Matt Mackall
bc67bd579d convert-repo: linearize the tag commit 2005-10-05 19:25:45 -07:00
Matt Mackall
84ef231907 convert-repo: retrieve the commit hash from the tag object for tag import 2005-10-05 17:11:06 -07:00
Matt Mackall
c826fb5f44 convert-repo: Fix timezone handling 2005-10-05 17:09:51 -07:00
Matt Mackall
450a60d538 Merge with TAH 2005-10-03 12:52:45 -07:00
Steve Borho
54500796b2 Fix completion function for 'hg pull'. Fix truncation bug and remove tabs. 2005-10-01 00:02:01 -07:00
Benoit Boissinot
d69dc74159 bisect extension for mercurial
it works almost the same as git-bisect:

hg bisect init # start bisecting
hg bisect bad # mark current revision as broken
hg bisect good [<rev>] # mark <rev> as working
... the bisect code finds a new revision to try
... see if it works
hg bisect good # if it worked
hg bisect bad # it doesn't work
continue until there is only one revision left
2005-09-30 11:08:13 -07:00
Mikael Berthe
77d6103d36 Suppress warning in zsh_completion script 2005-09-30 11:06:13 -07:00
Steve Borho
03a0b1e1bb zsh completion function for hg 2005-09-29 13:18:39 -07:00
TK Soh
f2aeca3b0b contrib/hgk: remove hardcoded path to Wish 2005-09-29 13:18:32 -07:00
Robin Farine
6e0b544ef0 emacs minor mode optional argument
With GNU Emacs 21.4.1 and desktop save/restore enabled, loading
"mercurial.el" from ".emacs" breaks Emacs' initialization sequence
when the desktop restore code loads a file under Mercurial control.
The function 'desktop-create-buffer' passes an argument to each
minor mode it activates for the buffer.
2005-09-28 19:42:03 +02:00
mpm@selenic.com
222a6a701c hgk: Allow specifying hgk path in [hgk]path 2005-09-23 19:41:45 -07:00
mpm@selenic.com
6d6d4668ec Fix hgk for date handling changes 2005-09-23 19:38:21 -07:00
Vincent Danjean
eaf481898f hgk is a wish script
--- mercurial-0.7.orig/contrib/hgk	2005-09-23 11:02:21.000000000 +0200
+++ mercurial-0.7/contrib/hgk	2005-09-23 11:07:57.000000000 +0200
@@ -1,6 +1,4 @@
-#!/bin/sh
-# Tcl ignores the next line -*- tcl -*- \
-exec wish "$0" -- "${1+$@}"
+#!/usr/bin/wish

 # Copyright (C) 2005 Paul Mackerras.  All rights reserved.
 # This program is free software; it may be used, copied, modified
2005-09-23 18:58:57 -07:00
Vincent Danjean
0c1cbacb8a bash_completion is not an executable
Index: hg/contrib/bash_completion
===================================================================
--- hg.orig/contrib/bash_completion	2005-09-22 09:40:47.000000000 -0700
+++ hg/contrib/bash_completion	2005-09-23 18:32:46.000000000 -0700
@@ -1,5 +1,3 @@
-#!/bin/bash
-
 shopt -s extglob

 _hg_commands()
2005-09-23 18:58:48 -07:00
Florian La Roche
01847fb038 git -> hg conversion script
contrib/convert-repo changes:
- do not print verbose output so that error messages are seen more easily
- Output the date as integer and not as floating point number.
- Do not require a ".git" subdirectory to work on, but use the GIT_DIR
  environment var to specify the git repository.

Change is otherwise compatible to the current version and I have tested it
by converting the kernel and several git respositories from kernel.org.
(Btw, the udev test dir contains a /sys dir with entries which should not
be normal dirs and not be normal files. ;-)

Thanks again for mercurial,

Florian La Roche



--- a/contrib/convert-repo
+++ b/contrib/convert-repo
@@ -28,26 +28,18 @@
         self.path = path

     def getheads(self):
-        h = file(self.path + "/.git/HEAD").read()[:-1]
-        return [h]
+        return [file(self.path + "/HEAD").read()[:-1]]

     def catfile(self, rev, type):
         if rev == "0" * 40: raise IOError()
-        path = os.getcwd()
-        os.chdir(self.path)
-        fh = os.popen("git-cat-file %s %s 2>/dev/null" % (type, rev))
-        os.chdir(path)
+        fh = os.popen("GIT_DIR=%s git-cat-file %s %s 2>/dev/null" % (self.path, type, rev))
         return fh.read()

     def getfile(self, name, rev):
         return self.catfile(rev, "blob")

     def getchanges(self, version):
-        path = os.getcwd()
-        os.chdir(self.path)
-        fh = os.popen("git-diff-tree --root -m -r %s" % (version))
-        os.chdir(path)
-
+        fh = os.popen("GIT_DIR=%s git-diff-tree --root -m -r %s" % (self.path, version))
         changes = []
         for l in fh:
             if "\t" not in l: continue
@@ -83,9 +75,9 @@

     def gettags(self):
         tags = {}
-        for f in os.listdir(self.path + "/.git/refs/tags"):
+        for f in os.listdir(self.path + "/refs/tags"):
             try:
-                h = file(self.path + "/.git/refs/tags/" + f).read().strip()
+                h = file(self.path + "/refs/tags/" + f).read().strip()
                 tags[f] = h
             except:
                 pass
@@ -99,8 +91,7 @@

     def getheads(self):
         h = self.repo.changelog.heads()
-        h = [ hg.hex(x) for x in h ]
-        return h
+        return [ hg.hex(x) for x in h ]

     def putfile(self, f, e, data):
         self.repo.wfile(f, "w").write(data)
@@ -155,12 +146,12 @@
         newlines.sort()

         if newlines != oldlines:
-            print "updating tags"
+            #print "updating tags"
             f = self.repo.wfile(".hgtags", "w")
             f.write("".join(newlines))
             f.close()
             if not oldlines: self.repo.add([".hgtags"])
-            date = "%s 0" % time.mktime(time.gmtime())
+            date = "%s 0" % int(time.mktime(time.gmtime()))
             self.repo.rawcommit([".hgtags"], "update tags", "convert-repo",
                                 date, self.repo.changelog.tip(), hg.nullid)

@@ -262,7 +253,7 @@
             num -= 1
             if c in self.map: continue
             desc = self.commitcache[c][3].splitlines()[0]
-            print num, desc
+            #print num, desc
             self.copy(c)

         tags = self.source.gettags()
@@ -275,6 +266,8 @@
         self.dest.puttags(ctags)

 gitpath, hgpath, mapfile = sys.argv[1:]
+if os.path.isdir(gitpath + "/.git"):
+    gitpath += "/.git"

 c = convert(convert_git(gitpath), convert_mercurial(hgpath), mapfile)
 c.convert()
_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial
2005-09-23 17:15:36 -07:00
mpm@selenic.com
9282c26f18 Merge with TAH 2005-09-22 09:41:34 -07:00
Bryan O'Sullivan
5ee2831c96 Add release notes to built Windows package. 2005-09-21 15:50:43 -07:00
Bryan O'Sullivan
5d9dc1482a Update Windows release notes. 2005-09-21 15:44:50 -07:00
Bryan O'Sullivan
323047d6a2 Fix path of win32text extension in INI file. 2005-09-21 15:27:00 -07:00
Bryan O'Sullivan
02278114b8 Update Inno Setup installer to install INI file. 2005-09-21 15:26:50 -07:00
Bryan O'Sullivan
373279ef36 Add INI file for Windows. 2005-09-21 14:40:52 -07:00
Bryan O'Sullivan
1a913acdc9 Document Windows installer build process. 2005-09-21 00:47:57 -07:00
Bryan O'Sullivan
697d1c7be5 Add Windows installer file.
This uses Inno Setup.  If you don't use ISTool to edit the file, you
are either brave, nuts, or both.
2005-09-21 00:47:40 -07:00
Bryan O'Sullivan
874602b7e2 Add post-install text file. 2005-09-21 00:27:52 -07:00
Bryan O'Sullivan
2be00bb59a Turn the win32 README into a HTML file for now. 2005-09-21 00:20:20 -07:00
Bryan O'Sullivan
06e1e75205 Add win32 README for standalone installer. 2005-09-21 00:02:53 -07:00
TK Soh
c5b7848e50 bash_completion: extended patterns require extglob option 2005-09-21 09:02:41 +02:00
Thomas Arendsen Hein
455a56454d Cleanup of tabs and trailing spaces. 2005-09-21 07:56:19 +02:00
mpm@selenic.com
a0495d55b4 hgit -> hgk.py
Move hgit to hgk.py
- importing hgit as an extension created compiled hgitc, which was confusing
- hgit existed to support hgk so it was slightly misnamed
- removed executable bit as we no longer run it directly
- add 'view' command so we can run hg view
- change git-* commands to debug-* so hg help won't show them
- chdir to repository root on view so hgk doesn't choke in subdirs
2005-09-19 15:59:17 -07:00
Ollivier Robert
7d4d64228c Add a favicon.ico, small version of the main HG image. 2005-09-19 22:15:36 +02:00
Florian La Roche
2ac2c94cd4 Clean up RPM spec file 2005-09-18 14:05:54 -07:00
Thomas Arendsen Hein
581d6f4541 Generated new tcsh_completion with tcsh_completion_build.sh 2005-09-16 21:34:18 +02:00
Thomas Arendsen Hein
e72fd19edc Added new debug commands to bash_completion. 2005-09-16 21:31:31 +02:00
Bryan O'Sullivan
75da334110 Merge with MPM. 2005-09-14 14:39:46 -07:00
Bryan O'Sullivan
949c6e13d6 Merge with myself. 2005-09-14 11:27:36 -07:00
root@coffee.suse.com
89e50a06e8 Fix hgit revtree bug with stop revision handling 2005-09-14 13:14:20 -05:00
mason@suse.com
62c6d5a3e2 Convert hgk to use the hgit extension, and upate to the latest gitk 2005-09-13 19:33:18 -05:00
mason@suse.com
be6155cb7a Turn hgit into an extension, and add commands supporting the latest gitk 2005-09-13 19:33:10 -05:00
mason@suse.com
e2124d8d4f Fix off by one in convert-repo tags
--- crew.orig/contrib/convert-repo	2005-07-16 11:52:06.000000000 -0400
+++ crew/contrib/convert-repo	2005-09-02 02:58:14.000000000 -0400
@@ -86,9 +86,7 @@ class convert_git:
         for f in os.listdir(self.path + "/.git/refs/tags"):
             try:
                 h = file(self.path + "/.git/refs/tags/" + f).read().strip()
-                p, a, d, m = self.getcommit(h)
-                if not p: p = [h] # git is ugly, don't blame me
-                tags[f] = p[0]
+                tags[f] = h
             except:
                 pass
         return tags

--
_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial
2005-09-13 19:32:43 -05:00
Bryan O'Sullivan
6745f74e0f mercurial.el: implement hg-pull, and stub in hg-update. 2005-09-09 22:07:10 -07:00
Bryan O'Sullivan
a0d466ff60 patchbomb: add TLS and SMTP AUTH support.
Original patch from Lee Cantey <lcantey@gmail.com>.
2005-09-09 10:59:05 -07:00
Bryan O'Sullivan
3fdd132f7c patchbomb: continue if we can't import readline. 2005-09-04 15:12:20 -07:00
jdc@uwo.ca
0780d896b0 Fix mercurial.el help. 2005-08-31 11:58:15 -07:00
jdc@uwo.ca
cff6ac7682 Adjust hg-strip and hg-chomp regexps. 2005-08-31 11:56:58 -07:00
Bryan O'Sullivan
18fbb99246 Emacs: fix invocations of "hg log" to match current behaviour of log. 2005-08-31 10:54:00 -07:00
TK Soh
c13eeccd08 Regenerate tcsh_completion after bugfix in generator script 2005-08-30 11:22:29 +02:00
TK Soh
b2311cf1a4 tcsh_completion_build.sh: fixed error caused by xargs on Linux 2005-08-30 11:17:20 +02:00
TK Soh
1a860fa9c2 Add tcsh_completion to contrib 2005-08-30 11:16:31 +02:00
TK Soh
cfb26abf9a Add contrib script for generating tcsh completion source 2005-08-30 11:16:31 +02:00
bos@serpentine.internal.keyresearch.com
5bcd6d125f patchbomb: fix up confusion between strings and lists of strings. 2005-08-29 12:15:37 -07:00
Alexis S. L. Carvalho
d3995fac64 bash_completion: try to use bash3 features if they're available
This does NOT break completion for bash 2.05b (I haven't tested
earlier versions)
2005-08-29 20:37:07 +02:00
Alexis S. L. Carvalho
d75704cfb1 bash_completion: small cleanup and bugfix
_hg_count_non_option wasn't taking global options into account
while counting non-option arguments.

It also used only its first argument.
2005-08-29 20:37:07 +02:00
Alexis S. L. Carvalho
098e537d63 teach bash_completion about --cwd 2005-08-29 20:37:07 +02:00
Alexis S. L. Carvalho
c499be626e bash_completion: better handling of aliases
Instead of listing every alias in the big case..esac, use hg help
to get the canonical name of the command.
2005-08-29 20:37:07 +02:00
Alexis S. L. Carvalho
a6928b8448 bash_completion: update for new help output format 2005-08-29 20:37:07 +02:00
Thomas Arendsen Hein
bb21019e04 Make diffstat optional for patchbomb script. 2005-08-28 18:53:43 +02:00
Thomas Arendsen Hein
13d63f534a Variable 'body' was missing in patchbomb script. 2005-08-28 18:52:55 +02:00
mpm@selenic.com
b7bf6330ab patchbomb: eliminate silly complete summary message
No longer makes sense without attachments
2005-08-27 23:10:49 -07:00