Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
thg-hgtk
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
TortoiseHg
thg-hgtk
Commits
a339484aa807
Commit
a339484aa807
authored
12 years ago
by
Henrik Stuart
Browse files
Options
Downloads
Patches
Plain Diff
guess: use cmdutil.copy instead of removed wctx.remove/copy
--HG-- branch : hgtk-default
parent
c295e2d92481
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tortoisehg/hgtk/guess.py
+16
-5
16 additions, 5 deletions
tortoisehg/hgtk/guess.py
with
16 additions
and
5 deletions
tortoisehg/hgtk/guess.py
+
16
−
5
View file @
a339484a
...
...
@@ -13,7 +13,7 @@ import pango
import
cStringIO
import
Queue
from
mercurial
import
hg
,
ui
,
mdiff
,
scmutil
,
match
,
error
from
mercurial
import
hg
,
ui
,
mdiff
,
scmutil
,
match
,
error
,
cmdutil
from
mercurial
import
similar
from
tortoisehg.util.i18n
import
_
...
...
@@ -324,10 +324,21 @@ class DetectRenameDialog(gtk.Window):
src
,
usrc
,
dest
,
udest
,
percent
,
sensitive
=
row
if
not
sensitive
:
continue
if
not
os
.
path
.
exists
(
self
.
repo
.
wjoin
(
src
)):
# Mark missing rename source as removed
wctx
.
remove
([
src
])
wctx
.
copy
(
src
,
dest
)
wlock
=
self
.
repo
.
wlock
(
False
)
try
:
opts
=
{
'
after
'
:
True
,
'
force
'
:
False
,
'
include
'
:
[],
'
exclude
'
:
[],
'
dry-run
'
:
False
,
}
cmdutil
.
copy
(
self
.
repo
.
ui
,
self
.
repo
,
[
src
,
dest
],
opts
,
rename
=
not
os
.
path
.
exists
(
self
.
repo
.
wjoin
(
src
)))
finally
:
wlock
.
release
()
shlib
.
shell_notify
([
self
.
repo
.
wjoin
(
src
),
self
.
repo
.
wjoin
(
dest
)])
if
self
.
notify_func
:
self
.
notify_func
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment