简体   繁体   English

Mercurial HG拉特定的“无更改”但文件不同

[英]Mercurial HG pull specific “no changes” yet files different

My local file and mercurial revision are at different stages however hg pull & hg update default returns a no changes message. 我的本地文件和修订版本处于不同的阶段,但是hg pull和hg update default返回“无更改”消息。

On bitbucket my repo and revision I am trying to pull to local machine is https://bitbucket.org/sayth/pyxml/src/c63b5ce2119ae64331ee2551fc19083315be0571/xrace.py 在bitbucket上,我要下载到本地计算机的修订版和修订版是https://bitbucket.org/sayth/pyxml/src/c63b5ce2119ae64331ee2551fc190833151500571/xrace.py

[sayth@localhost pyXML]$ hg pull && hg update default 
pulling from https://bitbucket.org/sayth/pyxml
searching for changes
no changes found
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

At bitbucket at latest revision you can see just in the imports alone they are different. 在最新版本的bitbucket上,您可以仅在导入中看到它们是不同的。

Bitbucket 比特桶

# from lxml import etree
from lxml import objectify
import argparse
import os

local machine 本地机器

from pyquery import PyQuery as pq
# import pandas as pd
# import psycopg2
import argparse
import os
# from datetime import datetime

Even trying pulling by revision number but it wont update. 即使尝试按修订号提取,但也不会更新。

[sayth@localhost pyXML]$ hg pull -r c63b5ce
pulling from https://bitbucket.org/sayth/pyxml
no changes found

Your clone is a full copy of the remote repository with all the revisions in it. 您的克隆是远程存储库的完整副本,其中包含所有修订。
When you pull you're checking the remote repo for any new revisions and copying them to your local clone, but it does not change the files that you are currently editing. 拉动时,您正在检查远程存储库中是否有任何新修订,并将它们复制到本地克隆中,但是它不会更改您当前正在编辑的文件。

update changes your working copy, ie the files you are currently editing to whatever revision you choose. 更新会将您的工作副本(即当前正在编辑的文件)更改为您选择的任何版本。
If you just do hg update without specifying a revision it will update to whatever it thinks is the current tip of the repo. 如果您只是在不指定修订版本的情况下进行hg update ,它将更新为它认为是回购协议当前提示的内容。
If you do hg update -r c63b5ce2119a it will update your working copy to the specified revision and that will change the files you are currently editing. 如果执行hg update -r c63b5ce2119a ,它将把您的工作副本更新为指定的修订版,这将更改您当前正在编辑的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM