git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
d462469
)
remote-hg: remove files before modifications
author
Felipe Contreras
<redacted>
Sat, 25 May 2013 02:29:57 +0000
(21:29 -0500)
committer
Junio C Hamano
<redacted>
Tue, 28 May 2013 15:02:23 +0000
(08:02 -0700)
Otherwise replacing a file with a directory doesn't work.
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/remote-helpers/git-remote-hg
patch
|
blob
|
history
diff --git
a/contrib/remote-helpers/git-remote-hg
b/contrib/remote-helpers/git-remote-hg
index fa76b3f610c1c46a9cb2fad7c2f93f6589726a9f..bd545aa380d3751fdfbc416cb20947035bb4ec8b 100755
(executable)
--- a/
contrib/remote-helpers/git-remote-hg
+++ b/
contrib/remote-helpers/git-remote-hg
@@
-510,10
+510,10
@@
def export_ref(repo, name, kind, head):
if len(parents) > 1:
print "merge :%s" % (rev_to_mark(parents[1]))
- for f in modified_final:
- print "M %s :%u %s" % f
for f in removed:
print "D %s" % (fix_file_path(f))
+ for f in modified_final:
+ print "M %s :%u %s" % f
print
progress = (rev - tip)
git clone https://git.99rst.org/PROJECT